summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx/vmx.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-05-04 19:17:26 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-07 12:06:17 +0200
commit36fa06f9ff39f23e03cd8206dc6bbb7711c23be6 (patch)
tree061a01f384438101cb391e99db0f213fb0cfdf75 /arch/x86/kvm/vmx/vmx.h
parentKVM: SVM: Probe and load MSR_TSC_AUX regardless of RDTSCP support in host (diff)
downloadlinux-36fa06f9ff39f23e03cd8206dc6bbb7711c23be6.tar.xz
linux-36fa06f9ff39f23e03cd8206dc6bbb7711c23be6.zip
KVM: x86: Add support for RDPID without RDTSCP
Allow userspace to enable RDPID for a guest without also enabling RDTSCP. Aside from checking for RDPID support in the obvious flows, VMX also needs to set ENABLE_RDTSCP=1 when RDPID is exposed. For the record, there is no known scenario where enabling RDPID without RDTSCP is desirable. But, both AMD and Intel architectures allow for the condition, i.e. this is purely to make KVM more architecturally accurate. Fixes: 41cd02c6f7f6 ("kvm: x86: Expose RDPID in KVM_GET_SUPPORTED_CPUID") Cc: stable@vger.kernel.org Reported-by: Reiji Watanabe <reijiw@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210504171734.1434054-8-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx/vmx.h')
0 files changed, 0 insertions, 0 deletions