aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorBrian Gerst <brgerst@gmail.com>2010-07-17 09:03:26 -0400
committerH. Peter Anvin <hpa@zytor.com>2010-07-22 00:23:05 -0400
commit8c06585d6431addadd94903843dfbcd315b42d4e (patch)
tree4d673e4d190361e2d73aa06980601ac57a100b59 /arch/x86/kvm/svm.c
parentcd5b8f8755a89a57fc8c408d284b8b613f090345 (diff)
x86: Remove redundant K6 MSRs
MSR_K6_EFER is unused, and MSR_K6_STAR is redundant with MSR_STAR. Signed-off-by: Brian Gerst <brgerst@gmail.com> LKML-Reference: <1279371808-24804-1-git-send-email-brgerst@gmail.com> Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index ce438e0fdd26..24a220696298 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -130,7 +130,7 @@ static struct svm_direct_access_msrs {
130 u32 index; /* Index of the MSR */ 130 u32 index; /* Index of the MSR */
131 bool always; /* True if intercept is always on */ 131 bool always; /* True if intercept is always on */
132} direct_access_msrs[] = { 132} direct_access_msrs[] = {
133 { .index = MSR_K6_STAR, .always = true }, 133 { .index = MSR_STAR, .always = true },
134 { .index = MSR_IA32_SYSENTER_CS, .always = true }, 134 { .index = MSR_IA32_SYSENTER_CS, .always = true },
135#ifdef CONFIG_X86_64 135#ifdef CONFIG_X86_64
136 { .index = MSR_GS_BASE, .always = true }, 136 { .index = MSR_GS_BASE, .always = true },
@@ -2431,7 +2431,7 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data)
2431 *data = tsc_offset + native_read_tsc(); 2431 *data = tsc_offset + native_read_tsc();
2432 break; 2432 break;
2433 } 2433 }
2434 case MSR_K6_STAR: 2434 case MSR_STAR:
2435 *data = svm->vmcb->save.star; 2435 *data = svm->vmcb->save.star;
2436 break; 2436 break;
2437#ifdef CONFIG_X86_64 2437#ifdef CONFIG_X86_64
@@ -2555,7 +2555,7 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data)
2555 2555
2556 break; 2556 break;
2557 } 2557 }
2558 case MSR_K6_STAR: 2558 case MSR_STAR:
2559 svm->vmcb->save.star = data; 2559 svm->vmcb->save.star = data;
2560 break; 2560 break;
2561#ifdef CONFIG_X86_64 2561#ifdef CONFIG_X86_64