[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Improving timer/clock for win32

From: Kazu
Subject: [Qemu-devel] [PATCH] Improving timer/clock for win32
Date: Fri, 31 Mar 2006 14:49:06 +0900


This patch improves timer/clock for win32. Here is the patch and a binary.


It supports 1ms interval interrupt.
It also improves the delay when it is used with Kqemu/Qvm86.

A main reason of delay of time is that when main_loop_wait is slept and an
interrupt timer is expired, the timer interrupt doesn't occured. I used an
event object to wake up the main loop.

I used QueryPerformanceCounter/QueryPerformanceFrequency to measure time. It
uses ACPI PM Timer on my system. Some system use RDTSC value. It depends on
your system.

It might be possible to run on SMP(HT or Multi-core) system. I haven't
tested it, though.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]