• Jan Kiszka's avatar
    KVM: VMX: Allow single-stepping when uninterruptible · 55934c0b
    Jan Kiszka authored
    When single-stepping over STI and MOV SS, we must clear the
    corresponding interruptibility bits in the guest state. Otherwise
    vmentry fails as it then expects bit 14 (BS) in pending debug exceptions
    being set, but that's not correct for the guest debugging case.
    
    Note that clearing those bits is safe as we check for interruptibility
    based on the original state and do not inject interrupts or NMIs if
    guest interruptibility was blocked.
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    55934c0b
vmx.c 94.7 KB