• Sean Christopherson's avatar
    x86/cpufeatures: Redefine synthetic virtual NMI bit as AMD's "real" vNMI · 3763bf58
    Sean Christopherson authored
    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: default avatarSean Christopherson <seanjc@google.com>
    3763bf58
cpufeatures.h 31.3 KB