x86/cpufeatures: Redefine synthetic virtual NMI bit as AMD's "real" vNMI
authorSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 18:33:08 +0000 (11:33 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 19:34:34 +0000 (12:34 -0700)
commit3763bf58029f3459d7187f687eadfc8eb08e5ca8
tree027e63db31330eccd409a4882c0040e0a5e656f8
parentab2ee212a57bf136b896a47ce37da38a1fdbdc36
x86/cpufeatures: Redefine synthetic virtual NMI bit as AMD's "real" vNMI

The existing X86_FEATURE_VNMI is a synthetic feature flag that exists
purely to maintain /proc/cpuinfo's ABI, the "real" Intel vNMI feature flag
is tracked as VMX_FEATURE_VIRTUAL_NMIS, as the feature is enumerated
through VMX MSRs, not CPUID.

AMD is also gaining virtual NMI support, but in true VMX vs. SVM form,
enumerates support through CPUID, i.e. wants to add real feature flag for
vNMI.

Redefine the syntheic X86_FEATURE_VNMI to AMD's real CPUID bit to avoid
having both X86_FEATURE_VNMI and e.g. X86_FEATURE_AMD_VNMI.

Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h