KVM: VMX: not use vmcs_config in setup_vmcs_config
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Sep 2016 13:57:00 +0000 (15:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Sep 2016 17:34:30 +0000 (19:34 +0200)
setup_vmcs_config takes a pointer to the vmcs_config global.  The
indirection is somewhat pointless, but just keep things consistent
for now.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c

index 2029c006428927d2e19c3253751dd101a89a7840..2d584d93d3a8621e3bfaa4384652733587b58ee5 100644 (file)
@@ -3457,7 +3457,7 @@ static __init int setup_vmcs_config(struct vmcs_config *vmcs_conf)
                return -EIO;
 
        vmcs_conf->size = vmx_msr_high & 0x1fff;
-       vmcs_conf->order = get_order(vmcs_config.size);
+       vmcs_conf->order = get_order(vmcs_conf->size);
        vmcs_conf->revision_id = vmx_msr_low;
 
        vmcs_conf->pin_based_exec_ctrl = _pin_based_exec_control;
This page took 0.027335 seconds and 5 git commands to generate.