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