KVM: vmx: clear pending interrupts on KVM_SET_LAPIC
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Dec 2016 13:03:45 +0000 (14:03 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:54:33 +0000 (14:54 +0100)
commit967235d320329e4a7a2bd1a36b04293063e985ae
treeb8e6c108b8d989fcca95de76ff495ecdfeaaa38b
parentdb1c056cee59f4a7670c3bd9ee1657468cf0b4c4
KVM: vmx: clear pending interrupts on KVM_SET_LAPIC

Pending interrupts might be in the PI descriptor when the
LAPIC is restored from an external state; we do not want
them to be injected.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/vmx.c