diff options
author | Sean Christopherson <seanjc@google.com> | 2022-12-13 06:09:12 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-01-24 10:36:41 -0800 |
commit | 11df586d774f4aab1835144fd2a8dc3cb2add8d4 (patch) | |
tree | 17e072c09eaeff43a5423d88f6e1cd2ba54bcb67 /tools/testing/selftests/net/af_unix/test_unix_oob.c | |
parent | 4f76e86f7e0dc33af14256d30177bf65de2f9cab (diff) |
KVM: VMX: Handle NMI VM-Exits in noinstr region
Move VMX's handling of NMI VM-Exits into vmx_vcpu_enter_exit() so that
the NMI is handled prior to leaving the safety of noinstr. Handling the
NMI after leaving noinstr exposes the kernel to potential ordering
problems as an instrumentation-induced fault, e.g. #DB, #BP, #PF, etc.
will unblock NMIs when IRETing back to the faulting instruction.
Reported-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221213060912.654668-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/net/af_unix/test_unix_oob.c')
0 files changed, 0 insertions, 0 deletions