diff options
author | Haozhong Zhang <haozhong.zhang@intel.com> | 2015-10-20 15:39:02 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-10 12:06:14 +0100 |
commit | ad721883e9c5f46cc5fa9496bc12c097c6238b4a (patch) | |
tree | 71b28b521c58e56b8a940faec01079e4c9cce9ba /arch/x86/include | |
parent | bc9b961b357ea8129d75613b7af4fdf57ced9b9f (diff) | |
download | op-kernel-dev-ad721883e9c5f46cc5fa9496bc12c097c6238b4a.zip op-kernel-dev-ad721883e9c5f46cc5fa9496bc12c097c6238b4a.tar.gz |
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')
-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 5333767..f3354bd 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 */ |