Skip to contentSkip to conversation

KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr

PATCH Applied Jan Kiszka 2 participants 2 messages Feb 11, 2013 – Feb 14, 2013

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr

We already pass vmcs12 as argument.

---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
index 64e1233..4339355c 100644
@@ -5976,7 +5976,7 @@ static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu,
 	u32 msr_index = vcpu->arch.regs[VCPU_REGS_RCX];
 	gpa_t bitmap;
 
-	if (!nested_cpu_has(get_vmcs12(vcpu), CPU_BASED_USE_MSR_BITMAPS))
+	if (!nested_cpu_has(vmcs12, CPU_BASED_USE_MSR_BITMAPS))
 		return 1;
 
 	/*
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 3 lines · Jan Kiszka

We already pass vmcs12 as argument.

Thanks, applied.

Quoted 19 lines
---
 arch/x86/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
index 64e1233..4339355c 100644
@@ -5976,7 +5976,7 @@ static bool nested_vmx_exit_handled_msr(struct kvm_vcpu *vcpu,
 	u32 msr_index = vcpu->arch.regs[VCPU_REGS_RCX];
 	gpa_t bitmap;
 
-	if (!nested_cpu_has(get_vmcs12(vcpu), CPU_BASED_USE_MSR_BITMAPS))
+	if (!nested_cpu_has(vmcs12, CPU_BASED_USE_MSR_BITMAPS))
 		return 1;
 
 	/*
Signature · 1 line
1.7.3.4

--
Gleb.