All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Siddharth Chandrasekaran <sidcha@amazon.de>
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	Eduardo Habkost <ehabkost@redhat.com>,
	Cameron Esfahani <dirty@apple.com>,
	Roman Bolshakov <r.bolshakov@yadro.com>,
	Marcelo Tosatti <mtosatti@redhat.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: Windows fails to boot after rebase to QEMU master
Date: Mon, 24 May 2021 06:13:48 -0400	[thread overview]
Message-ID: <20210524055322-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20210521091451.GA6016@u366d62d47e3651.ant.amazon.com>

On Fri, May 21, 2021 at 11:17:19AM +0200, Siddharth Chandrasekaran wrote:
> After a rebase to QEMU master, I am having trouble booting windows VMs.
> Git bisect indicates commit f5cc5a5c1686 ("i386: split cpu accelerators
> from cpu.c, using AccelCPUClass") to have introduced the issue. I spent
> some time looking at into it yesterday without much luck.
> 
> Steps to reproduce:
> 
>     $ ./configure --enable-kvm --disable-xen --target-list=x86_64-softmmu --enable-debug
>     $ make -j `nproc`
>     $ ./build/x86_64-softmmu/qemu-system-x86_64 \
>         -cpu host,hv_synic,hv_vpindex,hv_time,hv_runtime,hv_stimer,hv_crash \
>         -enable-kvm \
>         -name test,debug-threads=on \
>         -smp 1,threads=1,cores=1,sockets=1 \
>         -m 4G \
>         -net nic -net user \
>         -boot d,menu=on \
>         -usbdevice tablet \
>         -vnc :3 \
>         -machine q35,smm=on \
>         -drive if=pflash,format=raw,readonly=on,unit=0,file="../OVMF_CODE.secboot.fd" \
>         -drive if=pflash,format=raw,unit=1,file="../OVMF_VARS.secboot.fd" \
>         -global ICH9-LPC.disable_s3=1 \
>         -global driver=cfi.pflash01,property=secure,value=on \
>         -cdrom "../Windows_Server_2016_14393.ISO" \
>         -drive file="../win_server_2016.qcow2",format=qcow2,if=none,id=rootfs_drive \
>         -device ahci,id=ahci \
>         -device ide-hd,drive=rootfs_drive,bus=ahci.0
> 
> If the issue is not obvious, I'd like some pointers on how to go about
> fixing this issue.
> 
> ~ Sid.
> 

At a guess this commit inadvertently changed something in the CPU ID.
I'd start by using a linux guest to dump cpuid before and after the
change.


> 
> 
> Amazon Development Center Germany GmbH
> Krausenstr. 38
> 10117 Berlin
> Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
> Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
> Sitz: Berlin
> Ust-ID: DE 289 237 879
> 
> 


WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Siddharth Chandrasekaran <sidcha@amazon.de>
Cc: Eduardo Habkost <ehabkost@redhat.com>,
	kvm@vger.kernel.org, Marcelo Tosatti <mtosatti@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	qemu-devel@nongnu.org, Cameron Esfahani <dirty@apple.com>,
	Roman Bolshakov <r.bolshakov@yadro.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: Windows fails to boot after rebase to QEMU master
Date: Mon, 24 May 2021 06:13:48 -0400	[thread overview]
Message-ID: <20210524055322-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20210521091451.GA6016@u366d62d47e3651.ant.amazon.com>

On Fri, May 21, 2021 at 11:17:19AM +0200, Siddharth Chandrasekaran wrote:
> After a rebase to QEMU master, I am having trouble booting windows VMs.
> Git bisect indicates commit f5cc5a5c1686 ("i386: split cpu accelerators
> from cpu.c, using AccelCPUClass") to have introduced the issue. I spent
> some time looking at into it yesterday without much luck.
> 
> Steps to reproduce:
> 
>     $ ./configure --enable-kvm --disable-xen --target-list=x86_64-softmmu --enable-debug
>     $ make -j `nproc`
>     $ ./build/x86_64-softmmu/qemu-system-x86_64 \
>         -cpu host,hv_synic,hv_vpindex,hv_time,hv_runtime,hv_stimer,hv_crash \
>         -enable-kvm \
>         -name test,debug-threads=on \
>         -smp 1,threads=1,cores=1,sockets=1 \
>         -m 4G \
>         -net nic -net user \
>         -boot d,menu=on \
>         -usbdevice tablet \
>         -vnc :3 \
>         -machine q35,smm=on \
>         -drive if=pflash,format=raw,readonly=on,unit=0,file="../OVMF_CODE.secboot.fd" \
>         -drive if=pflash,format=raw,unit=1,file="../OVMF_VARS.secboot.fd" \
>         -global ICH9-LPC.disable_s3=1 \
>         -global driver=cfi.pflash01,property=secure,value=on \
>         -cdrom "../Windows_Server_2016_14393.ISO" \
>         -drive file="../win_server_2016.qcow2",format=qcow2,if=none,id=rootfs_drive \
>         -device ahci,id=ahci \
>         -device ide-hd,drive=rootfs_drive,bus=ahci.0
> 
> If the issue is not obvious, I'd like some pointers on how to go about
> fixing this issue.
> 
> ~ Sid.
> 

At a guess this commit inadvertently changed something in the CPU ID.
I'd start by using a linux guest to dump cpuid before and after the
change.


> 
> 
> Amazon Development Center Germany GmbH
> Krausenstr. 38
> 10117 Berlin
> Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
> Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
> Sitz: Berlin
> Ust-ID: DE 289 237 879
> 
> 



  reply	other threads:[~2021-05-24 10:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-21  9:17 Windows fails to boot after rebase to QEMU master Siddharth Chandrasekaran
2021-05-24 10:13 ` Michael S. Tsirkin [this message]
2021-05-24 10:13   ` Michael S. Tsirkin
2021-05-26 19:30   ` Dr. David Alan Gilbert
2021-05-27  7:57     ` Claudio Fontana
2021-05-27  8:31       ` Dr. David Alan Gilbert
2021-05-27  8:31         ` Dr. David Alan Gilbert
2021-05-27  9:01         ` Philippe Mathieu-Daudé
2021-05-27  9:01           ` Philippe Mathieu-Daudé
2021-05-27  9:15           ` Dr. David Alan Gilbert
2021-05-27  9:15             ` Dr. David Alan Gilbert
2021-05-27  9:48             ` Claudio Fontana
2021-05-27 10:53               ` Claudio Fontana
2021-05-27 11:36                 ` Claudio Fontana
2021-05-27 11:51                   ` Siddharth Chandrasekaran
2021-05-27 13:21                   ` Claudio Fontana
2021-05-27 13:21                     ` Claudio Fontana
2021-05-27 13:24                   ` Dr. David Alan Gilbert
2021-05-27 13:24                     ` Dr. David Alan Gilbert
2021-05-27 18:43                     ` Claudio Fontana
2021-05-27 18:43                       ` Claudio Fontana

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=20210524055322-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=dirty@apple.com \
    --cc=ehabkost@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=r.bolshakov@yadro.com \
    --cc=richard.henderson@linaro.org \
    --cc=sidcha@amazon.de \
    /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.