From: Jan Kiszka Date: Mon, 11 Feb 2013 11:19:28 +0000 (+0100) Subject: KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr X-Git-Tag: v3.9-rc1~97^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbd29cb6e38af6119df2cdac0c58acf0e85c177e;p=platform%2Fkernel%2Flinux-exynos.git KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr We already pass vmcs12 as argument. Signed-off-by: Jan Kiszka Signed-off-by: Gleb Natapov --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index c794478..6667042 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -5920,7 +5920,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; /*