diff options
author | Jaswinder Singh Rajput <jaswinder@kernel.org> | 2009-05-14 01:30:10 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:39 -0400 |
commit | 60af2ecdc53af5b941e4a2eb99862a7ccf3ed7c8 (patch) | |
tree | a78efc9600d33a37f9c5660b960ad1dba1b16b41 /arch/x86/kvm/x86.c | |
parent | 890ca9aefa78f7831f8f633cab9e4803636dffe4 (diff) |
KVM: Use MSR names in place of address
Replace 0xc0010010 with MSR_K8_SYSCFG and 0xc0010015 with MSR_K7_HWCR.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 55a9dd182de8..a93ba37eb52c 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -973,8 +973,6 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) | |||
973 | u64 data; | 973 | u64 data; |
974 | 974 | ||
975 | switch (msr) { | 975 | switch (msr) { |
976 | case 0xc0010010: /* SYSCFG */ | ||
977 | case 0xc0010015: /* HWCR */ | ||
978 | case MSR_IA32_PLATFORM_ID: | 976 | case MSR_IA32_PLATFORM_ID: |
979 | case MSR_IA32_UCODE_REV: | 977 | case MSR_IA32_UCODE_REV: |
980 | case MSR_IA32_EBL_CR_POWERON: | 978 | case MSR_IA32_EBL_CR_POWERON: |
@@ -983,6 +981,8 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) | |||
983 | case MSR_IA32_LASTBRANCHTOIP: | 981 | case MSR_IA32_LASTBRANCHTOIP: |
984 | case MSR_IA32_LASTINTFROMIP: | 982 | case MSR_IA32_LASTINTFROMIP: |
985 | case MSR_IA32_LASTINTTOIP: | 983 | case MSR_IA32_LASTINTTOIP: |
984 | case MSR_K8_SYSCFG: | ||
985 | case MSR_K7_HWCR: | ||
986 | case MSR_VM_HSAVE_PA: | 986 | case MSR_VM_HSAVE_PA: |
987 | case MSR_P6_EVNTSEL0: | 987 | case MSR_P6_EVNTSEL0: |
988 | case MSR_P6_EVNTSEL1: | 988 | case MSR_P6_EVNTSEL1: |