aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-12-18 03:48:42 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:40 -0500
commit8a7e3f01e692cd202fb7c042cf2be9ff8c599a1e (patch)
tree2329c2dabbec92a48cba08cb95dbb8dd72fc1046 /arch/x86
parentbc23008b610dda1b0e69cd473b31c1391d6873f2 (diff)
KVM: VMX: Remove redundant variable
It's no longer necessary. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 694baed9bc8f..f8f2fdc26894 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2399,14 +2399,12 @@ static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
2399 for (i = 0; i < NR_VMX_MSR; ++i) { 2399 for (i = 0; i < NR_VMX_MSR; ++i) {
2400 u32 index = vmx_msr_index[i]; 2400 u32 index = vmx_msr_index[i];
2401 u32 data_low, data_high; 2401 u32 data_low, data_high;
2402 u64 data;
2403 int j = vmx->nmsrs; 2402 int j = vmx->nmsrs;
2404 2403
2405 if (rdmsr_safe(index, &data_low, &data_high) < 0) 2404 if (rdmsr_safe(index, &data_low, &data_high) < 0)
2406 continue; 2405 continue;
2407 if (wrmsr_safe(index, data_low, data_high) < 0) 2406 if (wrmsr_safe(index, data_low, data_high) < 0)
2408 continue; 2407 continue;
2409 data = data_low | ((u64)data_high << 32);
2410 vmx->guest_msrs[j].index = i; 2408 vmx->guest_msrs[j].index = i;
2411 vmx->guest_msrs[j].data = 0; 2409 vmx->guest_msrs[j].data = 0;
2412 vmx->guest_msrs[j].mask = -1ull; 2410 vmx->guest_msrs[j].mask = -1ull;