KVM: Drop interrupt shadow when single stepping should be done only on VMX
The problem exists only on VMX. Also currently we skip this step if there is pending exception. The patch fixes this too. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -3361,9 +3361,6 @@ static void update_cr8_intercept(struct kvm_vcpu *vcpu)
|
||||
|
||||
static void inject_pending_irq(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
|
||||
{
|
||||
if (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP)
|
||||
kvm_x86_ops->set_interrupt_shadow(vcpu, 0);
|
||||
|
||||
/* try to reinject previous events if any */
|
||||
if (vcpu->arch.nmi_injected) {
|
||||
kvm_x86_ops->set_nmi(vcpu);
|
||||
|
Reference in New Issue
Block a user