From: Stefan Weil <sw@weilnetz.de>
To: Clemens Kolbitsch <kolbitsch@lastline.com>
Cc: Andre Przywara <andre.przywara@amd.com>,
qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] QEMU (no kvm) Win7 (64bit) boot error
Date: Mon, 10 Sep 2012 19:46:07 +0200 [thread overview]
Message-ID: <504E275F.4090006@weilnetz.de> (raw)
In-Reply-To: <CAN+VXVOg27DUMfaUhYkkTT4yjBcGteoMHbx3msj-wOyc0S_EMw@mail.gmail.com>
Am 10.09.2012 19:20, schrieb Clemens Kolbitsch:
> On Mon, Sep 10, 2012 at 9:23 AM, Stefan Weil <sw@weilnetz.de> wrote:
>
>
> Hi Clemens,
>
> indeed, it looks like CPUID_DE fixes that BSOD with "STOP 0x0000005D ...".
> In my test scenario Windows now reboots instead of showing the BSOD.
>
> This commit added the TCG feature bit trimming which broke Windows:
>
> commit 551a2dec8fa55006a68393b9d6fb63577d2b3f1c
> Autor: Andre Przywara <andre.przywara@amd.com> Do Mär 11 14:39:03 2010
> Eintragender: Aurelien Jarno <aurelien@aurel32.net> Sa Mär 13 16:50:54
> 2010
>
> x86/cpuid: add TCG feature bit trimming
>
> In KVM we trim the user provided CPUID bits to match the host CPU's
> one. Introduce a similar feature to QEMU/TCG. Create a mask of TCG's
> capabilities and apply it to the user bits.
> This allows to let the CPU models reflect their native archetypes.
>
> Signed-off-by: Andre Przywara <andre.przywara@amd.com>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
>
>
> Andre, why don't we set the requested feature bits - no matter what TCG
> provides?
> Stefan,
>
> could you tell me what QEMU ( ;-) ) HW configuration you use for your
> testing? I'm able to boot, but it still is very unstable - after a few
> seconds of running, I still run into BSODs. I think it's independent
> of the bug I was working on, but I'd like to test some more.
I run qemu-system-x86_64 (latest from git) withthe default CPU
on a 64 bit Windows 7 host. QEMU uses that host's installation:
qemu-system-x86_64 -m 1024 -snapshot -hda //PhysicalDrive/0
>
> BTW, I'm actually quite confident that the missing CPU-ID bit caused
> the 0x5D booting BSOD, since I took two kernel boot traces (one of
> QEMU stable crashing and a working VM) and the location the traces
> branched off from each other was where the CPU-ID bits were checked
> (and this one feature bit was the only thing that was not set properly
> for the check to succeed).
>
> -Clemens
CPUID_DE is part of the PENTIUM_FEATURES macro, therefore
I think it's a very old feature which was already supported by
the Pentium CPU family. No wonder Windows complains when
it is missing.
This and maybe some more bits (there is a comment 'needed for Win64'
for CPUID_MTRR, CPUID_MCA, CPUID_CLFLUSH which were also removed)
should be set in TCG mode (as they are set with KVM).
There remain two questions:
* Do we need some TCG implementation for those bits?
* Should the patch which adds CPUID_DEagain be committed
before the other question was answered?
Any patch in this area should also be sent to qemu-stable:
this BSOD with Windows guests running on QEMU occurs rather
often (just run a search on a web search engine to get many
hits).
Regards,
Stefan
next prev parent reply other threads:[~2012-09-10 17:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-08 0:48 [Qemu-devel] Qemu (no kvm) Win7 (64bit) boot error Clemens Kolbitsch
2012-09-08 4:26 ` [Qemu-devel] QEMU " Stefan Weil
2012-09-08 18:22 ` Clemens Kolbitsch
2012-09-10 6:19 ` Clemens Kolbitsch
2012-09-10 16:23 ` Stefan Weil
2012-09-10 17:20 ` Clemens Kolbitsch
2012-09-10 17:46 ` Stefan Weil [this message]
2012-09-10 17:31 ` 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=504E275F.4090006@weilnetz.de \
--to=sw@weilnetz.de \
--cc=andre.przywara@amd.com \
--cc=aurelien@aurel32.net \
--cc=kolbitsch@lastline.com \
--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 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.