KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr
PATCH 1/1 KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr
We already pass vmcs12 as argument.
Signed-off-by Jan Kiszka <[email protected]>
--- arch/x86/kvm/vmx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/vmx.c +1 -1
@@ -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 Natapov
AppliedQuoted 3 lines · Jan Kiszka
We already pass vmcs12 as argument.
Signed-off-by Jan Kiszka <[email protected]>
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@@ -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.