From: Aurelien Jarno <aurelien@aurel32.net>
To: kvm-devel <kvm-devel@lists.sourceforge.net>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Subject: KVM-66: FreeBSD guest takes all CPU when idle
Date: Fri, 2 May 2008 22:39:25 +0200 [thread overview]
Message-ID: <20080502203925.GA30454@volta.aurel32.net> (raw)
Hi,
Since commit a0d22c57fbf0c67d73ab7ca3416841030e0bc22f, FreeBSD guests
takes all host CPU even when they are idle. Reverting this patch in
kvm-67 or git tree fixes (or workarounds?) the problem. Using
-no-kvm-pit also workarounds the problem.
Some more details:
Host: Linux 2.6.24 x86-64
CPU: problem occurs on T7500 and Q9450
Guest: problem occurs with FreeBSD/i386 6.2 and 6.3
Regards,
Aurelien
commit a0d22c57fbf0c67d73ab7ca3416841030e0bc22f
Author: Marcelo Tosatti <mtosatti@redhat.com>
Date: Fri Apr 11 14:53:26 2008 -0300
KVM: hlt emulation should take in-kernel APIC/PIT timers into account
Timers that fire between guest hlt and vcpu_block's add_wait_queue() are
ignored, possibly resulting in hangs.
Also make sure that atomic_inc and waitqueue_active tests happen in the
specified order, otherwise the following race is open:
CPU0 CPU1
if (waitqueue_active(wq))
add_wait_queue()
if (!atomic_read(pit_timer->pending))
schedule()
atomic_inc(pit_timer->pending)
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next reply other threads:[~2008-05-02 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-02 20:39 Aurelien Jarno [this message]
2008-05-02 22:23 ` KVM-66: FreeBSD guest takes all CPU when idle Marcelo Tosatti
2008-05-02 22:45 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080502203925.GA30454@volta.aurel32.net \
--to=aurelien@aurel32.net \
--cc=kvm-devel@lists.sourceforge.net \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.