How's the problem now? I can't solve it too. Could you give some addvice if possible? Thanks.
在Windows10/Windows11上,使用qemu-system-x86_64 -accel whpx启动虚拟机时,出现错误:whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005)
qemu-system-x86_64.exe -M q35 -accel whpx -name Windows10 -cpu EPYC -smp 4 -m 4G -drive file=E:/vms/win10.qcow2,format=qcow2,index=0,media=disk -netdev user,id=net0 -device virtio-net-pci,netdev=net0 -display sdl
WHPX: setting APIC emulation mode in the hypervisor
Windows Hypervisor Platform accelerator is operational
whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005)
在虚拟机内执行重启操作时,虚拟机卡住,并触发如下错误:
qemu-system-x86_64.exe: WHPX: Unexpected VP exit code 4
qemu-system-x86_64.exe: WHPX: Unexpected VP exit code 4
qemu-system-x86_64.exe: WHPX: Unexpected VP exit code 4
qemu-system-x86_64.exe: WHPX: Unexpected VP exit code 4
Windows 商业版 | 面向 IT 专业人士的 Windows 客户端 | 存储高可用性 | 虚拟化和 Hyper-V
-
Fossen 10 信誉分
2025-06-17T10:18:42.49+00:00 host system is Windows10, cpu is AMD Ryzen 5 4600G with Radeon Graphics . vm system is windows10 and windows server 2019.
start vm comand:
qemu-system-x86_64.exe -M q35 -accel whpx -name Windows10 -cpu EPYC -smp 4 -m 4G -drive file=E:/vms/win2k19.qcow2,format=qcow2,index=0,media=disk -netdev user,id=net0 -device virtio-net-pci,netdev=net0 -display sdl -chardev file,path=E:/vms/qemu_serial.log,id=serial0 -serial chardev:serial0 -d cpu,in_asm,exec,guest_errors -D E:/vms/qemu_debug
error information:
WHPX: setting APIC emulation mode in the hypervisor
Windows Hypervisor Platform accelerator is operational
whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005)
qemu version:
D:\Program Files\qemu20250422>.\qemu-system-x86_64.exe --version
QEMU emulator version 10.0.0 (v10.0.0-12080-g252feb9469-dirty)
Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers
-
Smith Pham 2,795 信誉分 独立顾问
2025-06-13T09:29:42.5966667+00:00 Dear Team,
This error, "whpx: injection failed, MSI...lost (c0350005)" followed by "WHPX: Unexpected VP exit code 4" upon restart, points to a known issue with the Windows Hypervisor Platform (WHPX) accelerator in specific QEMU versions, particularly when dealing with interrupt handling (MSI) and virtual processor state.
The most common cause is a bug within the WHPX API or its interaction with your specific CPU and QEMU version. This often manifests during guest OS operations that heavily rely on interrupt requests, like restarting or shutting down.
Here are the most effective solutions, ranked from most likely to succeed:
- Update QEMU
This is the most frequent and successful solution. Newer versions of QEMU often contain patches and workarounds for bugs in WHPX.
- Recommendation: Download and install the latest stable version of QEMU for Windows. Bug fixes for WHPX are common in new releases.