diff options
author | Maciej S. Szmigiero <maciej.szmigiero@oracle.com> | 2023-05-19 14:26:18 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-06-03 02:34:20 +0300 |
commit | b2ce89978889b848a6dd652695dd1887e416f9d2 (patch) | |
tree | 249bffbf90ae7a2e9cf9543a2b57e63bd5d224f9 /Documentation/isdn | |
parent | 817fa998362d6ea9fabd5e97af8e9e2eb5f0e6f2 (diff) | |
download | linux-b2ce89978889b848a6dd652695dd1887e416f9d2.tar.xz |
KVM: SVM: vNMI pending bit is V_NMI_PENDING_MASK not V_NMI_BLOCKING_MASK
While testing Hyper-V enabled Windows Server 2019 guests on Zen4 hardware
I noticed that with vCPU count large enough (> 16) they sometimes froze at
boot.
With vCPU count of 64 they never booted successfully - suggesting some kind
of a race condition.
Since adding "vnmi=0" module parameter made these guests boot successfully
it was clear that the problem is most likely (v)NMI-related.
Running kvm-unit-tests quickly showed failing NMI-related tests cases, like
"multiple nmi" and "pending nmi" from apic-split, x2apic and xapic tests
and the NMI parts of eventinj test.
The issue was that once one NMI was being serviced no other NMI was allowed
to be set pending (NMI limit = 0), which was traced to
svm_is_vnmi_pending() wrongly testing for the "NMI blocked" flag rather
than for the "NMI pending" flag.
Fix this by testing for the right flag in svm_is_vnmi_pending().
Once this is done, the NMI-related kvm-unit-tests pass successfully and
the Windows guest no longer freezes at boot.
Fixes: fa4c027a7956 ("KVM: x86: Add support for SVM's Virtual NMI")
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/be4ca192eb0c1e69a210db3009ca984e6a54ae69.1684495380.git.maciej.szmigiero@oracle.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'Documentation/isdn')
0 files changed, 0 insertions, 0 deletions