QEMU failed to emulate MMIO Access when -accel whpx


tbtbfaker@...
 

I have built a OVMF based on EDK2, but when tried to run with QEMU -accel whpx, it gave the error of
qemu-system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturnStatus: 2
qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor

Without -accel whpx as an option in QEMU, it would work. However, I would need whpx as when using OVMF to boot into Windows, it would be very slow.


Laszlo Ersek
 

On 07/02/21 16:31, tbtbfaker@gmail.com wrote:
I have built a OVMF based on EDK2, but when tried to run with QEMU -accel whpx, it gave the error of
qemu-system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturnStatus: 2
qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor

Without -accel whpx as an option in QEMU, it would work. However, I would need whpx as when using OVMF to boot into Windows, it would be very slow.
At the moment, OvmfPkg has platforms (DSC files) that target Bhyve,
QEMU/KVM, QEMU/TCG, Xen/HVM, and Xen/PVH.

Thanks
Laszlo