projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc23008
)
KVM: VMX: Remove redundant variable
author
Sheng Yang
<
[email protected]
>
Fri, 18 Dec 2009 08:48:42 +0000
(16:48 +0800)
committer
Marcelo Tosatti
<
[email protected]
>
Mon, 1 Mar 2010 15:35:40 +0000
(12:35 -0300)
It's no longer necessary.
Signed-off-by: Sheng Yang <
[email protected]
>
Signed-off-by: Avi Kivity <
[email protected]
>
arch/x86/kvm/vmx.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 694baed9bc8f6492c0a5cf8dd8ad3a18653f3ace..f8f2fdc2689493d47078376322e74be087ac8b89 100644
(file)
--- 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)
for (i = 0; i < NR_VMX_MSR; ++i) {
u32 index = vmx_msr_index[i];
u32 data_low, data_high;
- u64 data;
int j = vmx->nmsrs;
if (rdmsr_safe(index, &data_low, &data_high) < 0)
continue;
if (wrmsr_safe(index, data_low, data_high) < 0)
continue;
- data = data_low | ((u64)data_high << 32);
vmx->guest_msrs[j].index = i;
vmx->guest_msrs[j].data = 0;
vmx->guest_msrs[j].mask = -1ull;