Skip to content

qemu-system-x86_64: WHPX: Unexpected VP exit code 4

Host environment

  • Operating system: Windows 10 Enterprise 21H2
  • OS build: 19044.1466
  • Architecture: x86-64
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: QEMU emulator version 6.2.0 (v6.2.0-11889-g5b72bf03f5-dirty)
  • QEMU command line: qemu-system-x86_64 -accel whpx --bios D:\Projects\FW\uefi\edk2\Build\OvmfX64\DEBUG_VS2019\FV\OVMF.fd

Description of problem

Qemu closes and prints following message:

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: WHPX: Unexpected VP exit code 4

Steps to reproduce

  1. build OVMF firmware from edk2
  2. run cmd : qemu-system-x86_64 -accel whpx --bios D:\Projects\FW\uefi\edk2\Build\OvmfX64\DEBUG_VS2019\FV\OVMF.fd
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information