OSDN Git Service

KVM: nSVM: avoid loss of pending IRQ/NMI before entering L2
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Mar 2020 22:05:44 +0000 (17:05 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:55 +0000 (17:58 +0100)
commit78f2145c4d937a4770f365d6f5dc6eb825658d10
tree00a92e9fec3a93eaf918bfe6b91594d0a6e8c8c9
parentb518ba9fa691a3066ee935f6f317f827295453f0
KVM: nSVM: avoid loss of pending IRQ/NMI before entering L2

This patch reproduces for nSVM the change that was made for nVMX in
commit b5861e5cf2fc ("KVM: nVMX: Fix loss of pending IRQ/NMI before
entering L2").  While I do not have a test that breaks without it, I
cannot see why it would not be necessary since all events are unblocked
by VMRUN's setting of GIF back to 1.

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