diff options
author | Jaswinder Singh Rajput <jaswinder@kernel.org> | 2009-05-15 09:12:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:38 -0400 |
commit | af24a4e4aec77ef16c1971cf4465f767ba946034 (patch) | |
tree | e879b6a272affd8af9e26d008d9af7050921d69e /arch/x86/kvm/vmx.c | |
parent | ae0bb3e011fec51fa67073d8e23d8ffeb36185d1 (diff) |
KVM: Replace MSR_IA32_TIME_STAMP_COUNTER with MSR_IA32_TSC of msr-index.h
Use standard msr-index.h's MSR declaration.
MSR_IA32_TSC is better than MSR_IA32_TIME_STAMP_COUNTER as it also solves
80 column issue.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index db0b8b6df198..c87c93fd129a 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -941,7 +941,7 @@ static int vmx_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *pdata) | |||
941 | case MSR_EFER: | 941 | case MSR_EFER: |
942 | return kvm_get_msr_common(vcpu, msr_index, pdata); | 942 | return kvm_get_msr_common(vcpu, msr_index, pdata); |
943 | #endif | 943 | #endif |
944 | case MSR_IA32_TIME_STAMP_COUNTER: | 944 | case MSR_IA32_TSC: |
945 | data = guest_read_tsc(); | 945 | data = guest_read_tsc(); |
946 | break; | 946 | break; |
947 | case MSR_IA32_SYSENTER_CS: | 947 | case MSR_IA32_SYSENTER_CS: |
@@ -1001,7 +1001,7 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) | |||
1001 | case MSR_IA32_SYSENTER_ESP: | 1001 | case MSR_IA32_SYSENTER_ESP: |
1002 | vmcs_writel(GUEST_SYSENTER_ESP, data); | 1002 | vmcs_writel(GUEST_SYSENTER_ESP, data); |
1003 | break; | 1003 | break; |
1004 | case MSR_IA32_TIME_STAMP_COUNTER: | 1004 | case MSR_IA32_TSC: |
1005 | rdtscll(host_tsc); | 1005 | rdtscll(host_tsc); |
1006 | guest_write_tsc(data, host_tsc); | 1006 | guest_write_tsc(data, host_tsc); |
1007 | break; | 1007 | break; |