QEMU cpu max doesnot work on Windows 11 with ryzen processor and whpx

Host environment

  • Operating system: (Windows 11)
  • OS/kernel version: (Microsoft Windows [Version 10.0.22621.1])
  • Architecture: (x86)
  • QEMU flavor: (qemu-system-x86_64)
  • QEMU version: (v7.0.0-11902-g1d935f4a02-dirty & v7.0.0-1245-g58b53669)
  • QEMU command line: qemu-system-x86_64.exe --accel whpx --cpu max

Emulated/Virtualized environment

  • Operating system: (any)
  • OS/kernel version: (any)
  • Architecture: (x86)

Description of problem

  • System does not boot.
  • 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: WHPX: Unexpected VP exit code 4

Steps to reproduce

  1. Windows 11 / Ryzen
  2. qemu-system-x86_64.exe --accel whpx --cpu max
Edited by Toby Liu
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information