diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2011-03-25 08:44:47 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-11 11:57:04 (GMT) |
commit | 1e993611d0dc879fde25515dc9867d1cfd4c5137 (patch) | |
tree | 39bb576e536d5d3a1194118935c87b5257b04369 /arch/x86/include/asm/kvm_host.h | |
parent | fbc0db76b77125e0a5131fb886cbaafa1ec5c525 (diff) | |
download | linux-fsl-qoriq-1e993611d0dc879fde25515dc9867d1cfd4c5137.tar.xz |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index ecdc562..e3aaa02 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -396,7 +396,10 @@ struct kvm_vcpu_arch { u64 last_kernel_ns; u64 last_tsc_nsec; u64 last_tsc_write; + u32 virtual_tsc_khz; bool tsc_catchup; + u32 tsc_catchup_mult; + s8 tsc_catchup_shift; bool nmi_pending; bool nmi_injected; @@ -466,9 +469,6 @@ struct kvm_arch { u64 last_tsc_nsec; u64 last_tsc_offset; u64 last_tsc_write; - u32 virtual_tsc_khz; - u32 virtual_tsc_mult; - s8 virtual_tsc_shift; struct kvm_xen_hvm_config xen_hvm_config; |