Skip to contentSkip to conversation

Qemu can dance speed-step - let windows see the correct time!

PATCH New Juergen Pfennig 1 participant 1 message Feb 7, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Qemu can dance speed-step - let windows see the correct time!

Hi,

the following is stuff from qemu-xp and cannot directly be applied to the qemu sources. Anyhow: you can see what I have done. As a result windows displays the correct time. Also the poll() was a bit optimised. The timer stuff was changed to get some cpu cycles back. On a system with low CPU load the timer might consume 0.5% of the time, but under heavy CPU load you might see 5% time spent by the timer (actually I plan to dynamically reduce the alarm timer frequency in future versions). Other clean-ups are (and will be) related to memory-locality of frequently used data.

I have not seen any negative side effects of my code. TCP/IP still works (they use the cpu-clock-counter?). The code was not written for gamers... fast animations will not run precise. The deal is: don't waste cpu cycles but make the windows clock go right (even with speed-step).

Yours Juergen