diff options
author | Haozhong Zhang <haozhong.zhang@intel.com> | 2015-10-20 09:39:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-10 12:06:14 +0100 |
commit | ad721883e9c5f46cc5fa9496bc12c097c6238b4a (patch) | |
tree | 71b28b521c58e56b8a940faec01079e4c9cce9ba /arch/x86/include/asm | |
parent | KVM: x86: Collect information for setting TSC scaling ratio (diff) | |
download | linux-ad721883e9c5f46cc5fa9496bc12c097c6238b4a.tar.xz linux-ad721883e9c5f46cc5fa9496bc12c097c6238b4a.zip |
KVM: x86: Add a common TSC scaling ratio field in kvm_vcpu_arch
This patch moves the field of TSC scaling ratio from the architecture
struct vcpu_svm to the common struct kvm_vcpu_arch.
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 5333767560c0..f3354bd92364 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -505,6 +505,7 @@ struct kvm_vcpu_arch { u32 virtual_tsc_mult; u32 virtual_tsc_khz; s64 ia32_tsc_adjust_msr; + u64 tsc_scaling_ratio; atomic_t nmi_queued; /* unprocessed asynchronous NMIs */ unsigned nmi_pending; /* NMI queued after currently running handler */ |