diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2019-04-03 16:06:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-27 09:37:37 +0200 |
commit | 739969f56e4ff486f585fe2edeb12583e7e2a46c (patch) | |
tree | ceb3cf5de5a0c843a3696a9891eb13aeda9ded7e /mm/mmu_gather.c | |
parent | 935fef82120fe9531263c609685e85e5b58448d6 (diff) |
KVM: x86: svm: make sure NMI is injected after nmi_singlestep
commit 99c221796a810055974b54c02e8f53297e48d146 upstream.
I noticed that apic test from kvm-unit-tests always hangs on my EPYC 7401P,
the hanging test nmi-after-sti is trying to deliver 30000 NMIs and tracing
shows that we're sometimes able to deliver a few but never all.
When we're trying to inject an NMI we may fail to do so immediately for
various reasons, however, we still need to inject it so enable_nmi_window()
arms nmi_singlestep mode. #DB occurs as expected, but we're not checking
for pending NMIs before entering the guest and unless there's a different
event to process, the NMI will never get delivered.
Make KVM_REQ_EVENT request on the vCPU from db_interception() to make sure
pending NMIs are checked and possibly injected.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/mmu_gather.c')
0 files changed, 0 insertions, 0 deletions