WHPX: fixed TPR/CR8 translation issues affecting VM debugging
commitf000bc74589247244943085b210cee32bac28c89
authorIvan Shcherbakov <ivan@sysprogs.com>
Sat, 14 May 2022 05:50:21 +0000 (14 07:50 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 14 May 2022 10:32:40 +0000 (14 12:32 +0200)
tree3210faa74432f1421e9d63d86e27455d44bff464
parent48de9b0916ef60d5a6bd6ca9288832deff8ee1ee
WHPX: fixed TPR/CR8 translation issues affecting VM debugging

This patch fixes the following error that would occur when trying to resume
a WHPX-accelerated VM from a breakpoint:

    qemu: WHPX: Failed to set interrupt state registers, hr=c0350005

The error arises from an incorrect CR8 value being passed to
WHvSetVirtualProcessorRegisters() that doesn't match the
value set via WHvSetVirtualProcessorInterruptControllerState2().

Signed-off-by: Ivan Shcherbakov <ivan@sysprogs.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/whpx/whpx-all.c