summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-02-11 12:19:28 +0100
committerGleb Natapov <gleb@redhat.com>2013-02-14 10:35:16 +0200
commitcbd29cb6e38af6119df2cdac0c58acf0e85c177e (patch)
treefea0624b0bad739a43334059576d58e0e9607dac /arch/x86
parentf583c29b7913fa32b0b1b7f43038d6a7d9f71b6f (diff)
downloadop-kernel-dev-cbd29cb6e38af6119df2cdac0c58acf0e85c177e.zip
op-kernel-dev-cbd29cb6e38af6119df2cdac0c58acf0e85c177e.tar.gz
KVM: nVMX: Remove redundant get_vmcs12 from nested_vmx_exit_handled_msr
We already pass vmcs12 as argument. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
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;
/*
OpenPOWER on IntegriCloud