KVM: x86: Advertise INVPCID by default
authorSean Christopherson <seanjc@google.com>
Fri, 12 Feb 2021 00:34:10 +0000 (16:34 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Feb 2021 12:33:29 +0000 (07:33 -0500)
commite42033342293212ba5329f04f15e81dcb29b7118
treee2ed7aa832052d4703ab8b749c042898ddebfcce
parent0a8ed2eaac102c746d8d114f2787f06cb3e55dfb
KVM: x86: Advertise INVPCID by default

Advertise INVPCID by default (if supported by the host kernel) instead
of having both SVM and VMX opt in.  INVPCID was opt in when it was a
VMX only feature so that KVM wouldn't prematurely advertise support
if/when it showed up in the kernel on AMD hardware.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210212003411.1102677-3-seanjc@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c