KVM: X86: Let kvm-clock report the right tsc frequency
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 25 Mar 2011 08:44:47 +0000 (09:44 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:04 +0000 (07:57 -0400)
commit1e993611d0dc879fde25515dc9867d1cfd4c5137
tree39bb576e536d5d3a1194118935c87b5257b04369
parentfbc0db76b77125e0a5131fb886cbaafa1ec5c525
KVM: X86: Let kvm-clock report the right tsc frequency

This patch changes the kvm_guest_time_update function to use
TSC frequency the guest actually has for updating its clock.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c