[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [5636] Run timers from host alarm timer callback
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [5636] Run timers from host alarm timer callback |
Date: |
Fri, 7 Nov 2008 17:23:54 +0100 |
User-agent: |
KMail/1.9.9 |
On Friday 07 November 2008, Anthony Liguori wrote:
> Luis Pureza wrote:
> > Hi,
> >
> > This commit caused a noticeable slowdown while using the instruction
> > counting mechanism. I'm testing with the sparc-test image and with
> > --icount auto.
>
> Yeah, I take it that all timers don't result in signals when using
> icount and that we rely on select() timeout instead. Let me look a
> little more closely at the code and I'll come up with a fix.
In icount mode vm_clock timers don't use host timers at all.
Instead we calculate how long we want to wait before checking again (the
EXCP_HALT code in vl.c:main_loop), and use that as the select timeout.
Paul