[Bug 218257] New: [Nested VM] Failed to boot L2 Windows guest on L1 Windows guest

bugzilla-daemon
2023-12-12T06:48:06Z

Bug ID: 218257
Summary: [Nested VM] Failed to boot L2 Windows guest on L1
Windows guest
Product: Virtualization
Version: unspecified
Hardware: Intel
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: kvm
Assignee: virtualization_kvm@kernel-bugs.osdl.org
Reporter: ruifeng.gao@intel.com
Regression: Yes
Bisected a1c288f87de7aff94e87724127eabb6cdb38b120
commit-id:

Created attachment 305591
--> https://bugzilla.kernel.org/attachment.cgi?id=305591&action=edit
Captured failed screen on L2 guest

Environment:
------------
CPU Architecture: x86_64
Host OS: CentOS Stream 9
Guest OS L1: Windows 10 Pro (10.0.18362 N/A Build 18362), x64-based PC
Guest OS L2: Windows 10 Enterprises (10.0.10240 N/A Build 10240), x64-based PC
kvm.git next branch commit id: e9e60c82fe391d04db55a91c733df4a017c28b2f
qemu-kvm commit id:
Host Kernel Version: 6.7.0-rc1
Hardware: Sapphire Rapids

Bug detailed description:
--------------------------
To verify two nested Windows guests scenarios, we used Windows image to create
L1 guest, then failed to boot L2 Windows guest on L1 guest. The error screen is
captured in attachment.

Note: this is suspected to be a KVM Kernel bug by bisect the different commits:
kvm next + qemu-kvm = result
a1c288f87de7aff94e87724127eabb6cdb38b120 + d451e32c = bad
e1a6d5cf10dd93fc27d8c85cd7b3e41f08a816e6 + d451e32c = good

Reproduce steps:
----------------
1.create L1 guests:
qemu-system-x86_64 -accel kvm -cpu host -smp 8 -drive
file=L1_VMWARE_L2_WIN10.img,if=none,id=virtio-disk0 -device
virtio-blk-pci,drive=virtio-disk0,bootindex=0 -m 8192 -monitor pty -daemonize
-vnc :7 -device virtio-net-pci,netdev=nic0,mac=00:05:66:34:98:e6 -netdev
tap,id=nic0,br=virbr0,helper=/usr/local/libexec/qemu-bridge-helper,vhost=on
2. create L2 guests:
Using VMware Workstation to boot Win10 guest.

Current result:
----------------
L2 guest (Windows 10 guest) failed to boot up.

Expected result:
----------------
L2 guest (Windows 10 guest) boot up successfully.