Bug 2229645

Summary: BSOD occurs when boot a win2022 guest with 448 vcpus
Product: Red Hat Enterprise Linux 9 Reporter: Yiqian Wei <yiwei>
Component: seabiosAssignee: Gerd Hoffmann <kraxel>
Status: NEW --- QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.3CC: jinzhao, qizhu, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yiqian Wei 2023-08-07 07:42:27 UTC
Description of problem:

BSOD occurs when boot a win2022 guest with 448 vcpus

Version-Release number of selected component (if applicable):
host version:
kernel-5.14.0-349.el9.x86_64
qemu-kvm-8.0.0-10.el9.x86_64
seabios-1.16.1-1.el9.x86_64
guest: Win2022

How reproducible:
100%

Steps to Reproduce:
1. boot a win2022 guest with 448 vcpus.
     /usr/libexec/qemu-kvm \
     -name 'avocado-vt-vm1'  \
     -sandbox on  \
     -machine q35,memory-backend=mem-machine_mem,kernel-irqchip=split,smbios-entry-point-type=64  \
     -device intel-iommu,intremap=on,eim=on \
     -device '{"id": "pcie-root-port-0", "driver": "pcie-root-port", "multifunction": true, "bus": "pcie.0", "addr": "0x1", "chassis": 1}' \
     -device '{"id": "pcie-pci-bridge-0", "driver": "pcie-pci-bridge", "addr": "0x0", "bus": "pcie-root-port-0"}'  \
     -nodefaults \
     -device '{"driver": "VGA", "bus": "pcie.0", "addr": "0x2"}' \
     -m 256G \
     -object '{"size": 274877906944, "id": "mem-machine_mem", "qom-type": "memory-backend-ram"}'  \
     -smp 448,sockets=8,cores=28,threads=2  \
     -cpu 'Cascadelake-Server',ss=on,vmx=on,pdcm=on,hypervisor=on,tsc-adjust=on,umip=on,pku=on,md-clear=on,stibp=on,arch-capabilities=on,xsaves=on,ibpb=on,ibrs=on,amd-stibp=on,amd-ssbd=on,rdctl-no=on,ibrs-all=on,skip-l1dfl-vmentry=on,mds-no=on,pschange-mc-no=on,tsx-ctrl=on,hle=off,rtm=off,hv_stimer,hv_synic,hv_vpindex,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_frequencies,hv_runtime,hv_tlbflush,hv_reenlightenment,hv_stimer_direct,hv_ipi,kvm_pv_unhalt=on \
     -device '{"id": "pcie-root-port-1", "port": 1, "driver": "pcie-root-port", "addr": "0x1.0x1", "bus": "pcie.0", "chassis": 2}' \
     -device '{"driver": "qemu-xhci", "id": "usb1", "bus": "pcie-root-port-1", "addr": "0x0"}' \
     -device '{"driver": "usb-tablet", "id": "usb-tablet1", "bus": "usb1.0", "port": "1"}' \
     -device '{"id": "pcie-root-port-2", "port": 2, "driver": "pcie-root-port", "addr": "0x1.0x2", "bus": "pcie.0", "chassis": 3}' \
     -device '{"id": "virtio_scsi_pci0", "driver": "virtio-scsi-pci", "bus": "pcie-root-port-2", "addr": "0x0"}' \
     -blockdev '{"node-name": "file_image1", "driver": "file", "auto-read-only": true, "discard": "unmap", "aio": "threads", "filename": "/home/win2022-64-virtio-scsi.qcow2", "cache": {"direct": true, "no-flush": false}}' \
     -blockdev '{"node-name": "drive_image1", "driver": "qcow2", "read-only": false, "cache": {"direct": true, "no-flush": false}, "file": "file_image1"}' \
     -device '{"driver": "scsi-hd", "id": "image1", "drive": "drive_image1", "write-cache": "on"}' \
     -device '{"id": "pcie-root-port-3", "port": 3, "driver": "pcie-root-port", "addr": "0x1.0x3", "bus": "pcie.0", "chassis": 4}' \
     -device '{"driver": "virtio-net-pci", "mac": "9a:3f:88:6b:e8:02", "id": "id3ASAPd", "netdev": "idvFavWs", "bus": "pcie-root-port-3", "addr": "0x0"}'  \
     -netdev tap,id=idvFavWs,vhost=on   \
     -vnc :0  \
     -rtc base=utc,clock=host,driftfix=slew  \
     -boot menu=off,order=cdn,once=c,strict=off \
     -enable-kvm \

Actual results:
Guest hit BSOD

Expected results:
Guest didn't hit BSOD

Additional info:
1) hit this bug with q35 + ovmf
2) Not hit this bug when boot a win2022 guest with 240 vcpus

Comment 2 Yiqian Wei 2023-08-11 05:41:55 UTC
Can reproduce this bug on RHEL.8.9.0 host with win2022 guest.

host version:
kernel-4.18.0-508.el8.x86_64
qemu-kvm-6.2.0-38.module+el8.9.0+19636+489b90af.x86_64
edk2-ovmf-20220126gitbb1bba3d77-5.el8.noarch
guest: Win2022