kvm: vmx: Set IA32_TSC_AUX for legacy mode guests
authorJim Mattson <jmattson@google.com>
Wed, 5 Dec 2018 23:28:58 +0000 (15:28 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 16:59:47 +0000 (17:59 +0100)
commit0023ef39dc35c773c436eaa46ca539a26b308b55
treec99dd34213bf281b795b199c36adafc3d0d85c42
parent55d2375e58a61be072431dd3d3c8a320f4a4a01b
kvm: vmx: Set IA32_TSC_AUX for legacy mode guests

RDTSCP is supported in legacy mode as well as long mode. The
IA32_TSC_AUX MSR should be set to the correct guest value before
entering any guest that supports RDTSCP.

Fixes: 4e47c7a6d714 ("KVM: VMX: Add instruction rdtscp support for guest")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Marc Orr <marcorr@google.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c