From: "R. Armiento" <reply-2006@armiento.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] add 'monitor' and 'mwait' instruction (update)
Date: Sat, 08 Jul 2006 15:16:40 +0200 [thread overview]
Message-ID: <44AFB038.9020101@armiento.net> (raw)
In-Reply-To: <D622EA07-EE1C-4A75-8C10-40E22F170269@gmx.de>
Hi,
Joachim Henke wrote:
> Please use the updated patch attached below.
Great work! The patch fixes the kernel panic for me. Thank you.
However, as you probably know, despite not declaring MONITOR in qemu,
kqemu sees MONITOR on the host processor and Linux CPU usage will still
be 100%, even with your updated patch. So even with your patch applied
one should use the 'idle=halt' kernel parameter when booting Linux with
-kernel-kqemu on newer processors.
While your patch resolves the problem and is great for my setup, I
suppose it is problematic. If MONITOR is not declared by qemu then still
serving mwait 'correctly' is not faithful emulation (right?). To make
sure this does not break anything else, I would guess that either mwait
has to be emulated better so that it is ok to let qemu declare MONITOR
support; OR as a temporary workaround make the patch only serve mwait if
-kernel-kqemu is enabled and host CPUID supports MONITOR.
The whole thing with CPUID not being trappable seems like a can of worms
to me, partly breaking hardware abstraction. I am totally ignorant of
the inner workings of kqemu; but if it was somehow possible to "rewrite"
CPUID into something trappable and handling it correctly, that would
give a much more satisfying solution to this problem.
Rickard
next prev parent reply other threads:[~2006-07-08 11:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-06 15:13 [Qemu-devel] Pentium D with guest Ubuntu 6.06 server kernel panic with kqemu R. Armiento
2006-07-07 9:06 ` Joachim Henke
2006-07-07 9:39 ` Jens Axboe
2006-07-07 13:39 ` R. Armiento
2006-07-07 12:30 ` [Qemu-devel] [PATCH] add 'monitor' and 'mwait' instruction Joachim Henke
2006-07-07 12:57 ` maestro
2006-07-07 13:22 ` Joachim Henke
2006-07-07 15:21 ` Joachim Henke
2006-07-07 13:18 ` [Qemu-devel] [PATCH] add 'monitor' and 'mwait' instruction (update) Joachim Henke
2006-07-07 13:20 ` Joachim Henke
2006-07-08 13:16 ` R. Armiento [this message]
2006-07-08 15:01 ` [Qemu-devel] " Joachim Henke
2006-07-08 20:50 ` R. Armiento
2006-07-09 8:54 ` Joachim Henke
2006-07-09 13:20 ` R. Armiento
2006-07-09 11:30 ` Paul Brook
2006-07-09 15:25 ` Jamie Lokier
2006-07-09 13:03 ` [Qemu-devel] 'monitor' and 'mwait' instruction Joachim Henke
2006-07-09 15:21 ` [Qemu-devel] add 'monitor' and 'mwait' instruction (update) Jamie Lokier
2006-07-09 15:11 ` Jamie Lokier
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=44AFB038.9020101@armiento.net \
--to=reply-2006@armiento.net \
--cc=qemu-devel@nongnu.org \
/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 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).