Re: [Qemu-devel] [RFC PATCH V2 3/5] cpu_exec: Add sleeping algorithm

2014-06-13 Thread Paolo Bonzini
Il 13/06/2014 11:40, Sebastian Tanase ha scritto: The goal is to sleep qemu whenever the guest clock is in advance compared to the host clock (we use the monotonic clocks). The amount of time to sleep is calculated in the execution loop in cpu_exec. Basically, using QEMU_CLOCK_REALTIME, we calcu

[Qemu-devel] [RFC PATCH V2 3/5] cpu_exec: Add sleeping algorithm

2014-06-13 Thread Sebastian Tanase
The goal is to sleep qemu whenever the guest clock is in advance compared to the host clock (we use the monotonic clocks). The amount of time to sleep is calculated in the execution loop in cpu_exec. Basically, using QEMU_CLOCK_REALTIME, we calculate the real time duration of the execution (meanin