diff options
author | Liu, Jinsong <jinsong.liu@intel.com> | 2012-09-26 12:12:42 +0200 |
---|---|---|
committer | Liu, Jinsong <jinsong.liu@intel.com> | 2012-09-26 12:12:42 +0200 |
commit | 6e0336351ed95e2f72e396b3e1d055a8f5663542 (patch) | |
tree | 7a8e9ed2328d9d3169bd3d9580d0085b4d6def5e /xen/include/asm-x86/hvm/vcpu.h | |
parent | be3e4ed45e1bb0ec9aa2dfcd5450eec6ccc56dac (diff) | |
download | xen-6e0336351ed95e2f72e396b3e1d055a8f5663542.tar.gz xen-6e0336351ed95e2f72e396b3e1d055a8f5663542.tar.bz2 xen-6e0336351ed95e2f72e396b3e1d055a8f5663542.zip |
x86: Implement TSC adjust feature for HVM guest
IA32_TSC_ADJUST MSR is maintained separately for each logical
processor. A logical processor maintains and uses the IA32_TSC_ADJUST
MSR as follows:
1). On RESET, the value of the IA32_TSC_ADJUST MSR is 0;
2). If an execution of WRMSR to the IA32_TIME_STAMP_COUNTER MSR adds
(or subtracts) value X from the TSC, the logical processor also
adds (or subtracts) value X from the IA32_TSC_ADJUST MSR;
3). If an execution of WRMSR to the IA32_TSC_ADJUST MSR adds (or
subtracts) value X from that MSR, the logical processor also adds
(or subtracts) value X from the TSC.
This patch provides tsc adjust support for hvm guest, with it guest OS
would be happy when sync tsc.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r-- | xen/include/asm-x86/hvm/vcpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 9d68ed226d..e8b8cd76ba 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -137,6 +137,7 @@ struct hvm_vcpu { struct hvm_vcpu_asid n1asid; u32 msr_tsc_aux; + u64 msr_tsc_adjust; /* VPMU */ struct vpmu_struct vpmu; |