Skip to content

Commit aee77e1

Browse files
Maxim Levitskybonzini
authored andcommitted
KVM: x86: nSVM: restore int_vector in svm_clear_vintr
In svm_clear_vintr we try to restore the virtual interrupt injection that might be pending, but we fail to restore the interrupt vector. Signed-off-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent e1fc155 commit aee77e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kvm/svm/svm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,8 @@ static void svm_clear_vintr(struct vcpu_svm *svm)
15661566

15671567
svm->vmcb->control.int_ctl |= svm->nested.ctl.int_ctl &
15681568
V_IRQ_INJECTION_BITS_MASK;
1569+
1570+
svm->vmcb->control.int_vector = svm->nested.ctl.int_vector;
15691571
}
15701572

15711573
vmcb_mark_dirty(svm->vmcb, VMCB_INTR);

0 commit comments

Comments
 (0)