* [Qemu-devel] [PATCH] Improving timer/clock for win32
@ 2006-03-31 5:49 Kazu
2006-03-31 21:54 ` André Braga
0 siblings, 1 reply; 3+ messages in thread
From: Kazu @ 2006-03-31 5:49 UTC (permalink / raw)
To: qemu-devel
Hi,
This patch improves timer/clock for win32. Here is the patch and a binary.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060330-timer.patch
http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20060330-timer.zip
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.
Regards,
Kazu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Improving timer/clock for win32
2006-03-31 5:49 [Qemu-devel] [PATCH] Improving timer/clock for win32 Kazu
@ 2006-03-31 21:54 ` André Braga
2006-04-01 1:09 ` Kazu
0 siblings, 1 reply; 3+ messages in thread
From: André Braga @ 2006-03-31 21:54 UTC (permalink / raw)
To: qemu-devel
Kazu, have you tested whether this avoids the hang (and 100% CPU time
usage by QEMU, and being unable to kill the process by absolutely no
means - Process Explorer's 'kill' included - other than rebooting) on
WinXP host + kqemu and WinXP guest when opening the guests' clock
application by double-clicking it on the taskbar?
Thanks,
A.
On 3/31/06, Kazu <kazoo@r3.dion.ne.jp> wrote:
> Hi,
>
> This patch improves timer/clock for win32. Here is the patch and a binary.
>
> http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060330-timer.patch
> http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20060330-timer.zip
>
> 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.
>
> Regards,
> Kazu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Improving timer/clock for win32
2006-03-31 21:54 ` André Braga
@ 2006-04-01 1:09 ` Kazu
0 siblings, 0 replies; 3+ messages in thread
From: Kazu @ 2006-04-01 1:09 UTC (permalink / raw)
To: qemu-devel
Sent: Saturday, April 01, 2006 6:54 AM André Braga wrote:
>Kazu, have you tested whether this avoids the hang (and 100% CPU time
>usage by QEMU, and being unable to kill the process by absolutely no
>means - Process Explorer's 'kill' included - other than rebooting) on
>WinXP host + kqemu and WinXP guest when opening the guests' clock
>application by double-clicking it on the taskbar?
I know it but it isn't fixed.
Regards,
Kazu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-01 1:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31 5:49 [Qemu-devel] [PATCH] Improving timer/clock for win32 Kazu
2006-03-31 21:54 ` André Braga
2006-04-01 1:09 ` Kazu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).