public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@amd.com>
To: Avi Kivity <avi@redhat.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>, KVM list <kvm@vger.kernel.org>
Subject: Re: Booting/installing WindowsNT
Date: Wed, 5 May 2010 10:53:01 +0200	[thread overview]
Message-ID: <4BE131ED.6050906@amd.com> (raw)
In-Reply-To: <4BE12F26.9050502@redhat.com>

Avi Kivity wrote:
> On 05/05/2010 11:32 AM, Andre Przywara wrote:
>> Avi Kivity wrote:
>>> On 05/04/2010 06:27 PM, Andre Przywara wrote:
>>>>
>>>>> 3.  In all other cases so far it BSoDs with STOP 0x3E error
>>>>>   right before displaying that kernel message.
>>>> MSDN talks about a mulitprocessor configuration error:
>>>> http://msdn.microsoft.com/en-us/library/ms819006.aspx
>>>> I suspected the offline CPUs in the mptable that confuse NT. But 
>>>> -smp 1,maxcpus=1 does not make a difference. I will try to dig 
>>>> deeper in this area.
>> OK, I tackled this down. It is the max CPUID level that differs.
>> In the AMD CPUID guide leafs 0000_0002 till 0000_0004 are reserved, 
>> the CPU that Michael and I used (K8RevF) actually have a max leaf of 1 
>> here.
>> Default qemu64 has a max leaf of 4.
>> So by saying -cpu qemu64,level=1 (or 2 or 3) it works for me.
>> Modern OS only read leaf 4 on Intel systems, it seems that NT4 is 
>> missing this.
>> I will now think about a proper fix for this.
> 
> I don't understand.  Shouldn't the values for cpuid leaf 4 be the same 
> for qemu64 whether the cpu is Intel or AMD?  The real cpuid shouldn't 
> matter.
Yes, but if the max leaf value is smaller than 4, then the guest will 
not read it. It seems that NT does not like the entries returned by KVM 
for leaf 4. I am about to find out what exactly is causing that.
I have the theory that the stop is intentional as NT4 workstation does 
not _want_ to support certain SMP configurations (more than 2 
processors?) I have seen similar issue with WinXPPro and -smp 4 (which 
went away with -smp 4,cores=4).

Regards,
Andre.

-- 
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448-3567-12


  reply	other threads:[~2010-05-05  8:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 20:59 Booting/installing WindowsNT Michael Tokarev
2010-04-30 21:40 ` Michael Tokarev
2010-05-02 10:04   ` Avi Kivity
2010-05-02 16:12     ` Michael Tokarev
2010-05-02 16:40       ` Avi Kivity
2010-05-02 16:44         ` Michael Tokarev
2010-05-03  8:24       ` Andre Przywara
2010-05-03  8:48         ` Avi Kivity
2010-05-03  9:28           ` Andre Przywara
2010-05-03 17:03             ` Michael Tokarev
2010-05-04  9:06               ` Avi Kivity
2010-05-04 12:08                 ` Andre Przywara
2010-05-04 12:40                   ` Michael Tokarev
2010-05-04 15:27                     ` Andre Przywara
2010-05-04 16:23                       ` Avi Kivity
2010-05-05  4:35                         ` Michael Tokarev
2010-05-05  8:32                         ` Andre Przywara
2010-05-05  8:41                           ` Avi Kivity
2010-05-05  8:53                             ` Andre Przywara [this message]
2010-05-05  8:51                           ` Michael Tokarev
2010-05-05  8:59                             ` Avi Kivity
2010-05-05 10:18                             ` Andre Przywara
2010-05-05 11:35                               ` Avi Kivity
2010-05-03 16:54         ` Michael Tokarev

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=4BE131ED.6050906@amd.com \
    --to=andre.przywara@amd.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /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