]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Pass vmx_capability struct to setup_vmcs_config()
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 3 Dec 2018 21:53:01 +0000 (13:53 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 11:34:27 +0000 (12:34 +0100)
commit2e4766a05224774812774f9e36938536bc41e6d9
tree6de315301f03640814425cb54650cd6ee8eebb05
parent168090b83eb35bea78e4a0ccbba20bdf112ecaed
KVM: VMX: Pass vmx_capability struct to setup_vmcs_config()

...instead of referencing the global struct.  This will allow moving
setup_vmcs_config() to a separate file that may not have access to
the global variable.  Modify nested_vmx_setup_ctls_msrs() appropriately
since vmx_capability.ept may not be accurate when called by
vmx_check_processor_compat().

No functional change intended.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c