]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34df1e75e4cdd7d41454bcf6a6c8fabe3b836909
treee2ed7aa832052d4703ab8b749c042898ddebfcce
parentfb7dca32b1fe71cd478556b6ad74b3da6749c639
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