|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 15/15] qtest: add rtc-test test-case |
Date: | Wed, 11 Jan 2012 20:27:42 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 |
On 01/11/2012 06:06 PM, Anthony Liguori wrote:
The right thing to do would be to run the test with vm_clock for the rtc_clock, add a way for the qtest machine to bump the vm_clock to the next event,I actually was looking at this yesterday. Just bumping to the next event is not enough, you want to be able to control how time progresses. I was thinking of adding another qtest_clock and allowing the rtc to use the qtest_clock.
Yes, that's right. Only remark, I think it makes sense to reuse the vm_clock, so that you can reuse the icount infrastructure in -icount 0. qemu_icount is then simply your nanosecond count.
This requires you not to set env->halted, though. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |