在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)

Fossen 20 信誉分
2025-06-13T04:00:39.1366667+00:00

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

Hyper-V
Hyper-V
一种 Windows 技术,提供基于虚拟机监控程序的虚拟化解决方案,使客户能够将工作负载整合到单个服务器上。
49 个问题
0 个注释 无注释
{count} 票

接受的答案
  1. Smith Pham 150 信誉分
    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:

    1. 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.

1 个其他答案

排序依据: 非常有帮助
  1. Fossen 20 信誉分
    2025-06-14T05:18:37.4333333+00:00

    The QEMU version is 9.1.0

    qemu-system-x86_64.exe --version

    QEMU emulator version 9.1.0

    Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

    0 个注释 无注释

你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。