]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: Allow guest read access to IA32_TSC
authorJim Mattson <jmattson@google.com>
Fri, 9 Nov 2018 17:35:11 +0000 (09:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:24 +0000 (11:28 +0100)
commit1c244c78d1660888d43e736aa0cc5624ab57001f
treeec1fb1f051a282db82ea63d955bbd3c8430e73dc
parent36c112be264710922b6cab59fad4046d33571c30
kvm: vmx: Allow guest read access to IA32_TSC

Let the guest read the IA32_TSC MSR with the generic RDMSR instruction
as well as the specific RDTSC(P) instructions. Note that the hardware
applies the TSC multiplier and offset (when applicable) to the result of
RDMSR(IA32_TSC), just as it does to the result of RDTSC(P).

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>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx/vmx.c