linux/arch/x86/kvm/vmx
Sean Christopherson 7c97fcb3b6 KVM: VMX: Expose nested_vmx_allowed() to nested VMX as a non-inline
Exposing only the function allows @nested, i.e. the module param, to be
statically defined in vmx.c, ensuring we aren't unnecessarily checking
said variable in the nested code.  nested_vmx_allowed() is exposed due
to the need to verify nested support in vmx_{get,set}_nested_state().
The downside is that nested_vmx_allowed() likely won't be inlined in
vmx_{get,set}_nested_state(), but that should be a non-issue as they're
not a hot path.  Keeping vmx_{get,set}_nested_state() in vmx.c isn't a
viable option as they need access to several nested-only functions.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-12-14 17:59:45 +01:00
..
capabilities.h KVM: VMX: Expose various module param vars via capabilities.h 2018-12-14 12:34:29 +01:00
evmcs.c KVM: VMX: Move eVMCS code to dedicated files 2018-12-14 14:00:06 +01:00
evmcs.h KVM: VMX: Move eVMCS code to dedicated files 2018-12-14 14:00:06 +01:00
ops.h KVM: VMX: Move VMX instruction wrappers to a dedicated header file 2018-12-14 17:17:27 +01:00
pmu_intel.c
vmcs12.c KVM: nVMX: Move vmcs12 code to dedicated files 2018-12-14 12:34:30 +01:00
vmcs12.h KVM: nVMX: Move vmcs12 code to dedicated files 2018-12-14 12:34:30 +01:00
vmcs_shadow_fields.h KVM: VMX: rename vmx_shadow_fields.h to vmcs_shadow_fields.h 2018-12-14 12:34:24 +01:00
vmcs.h KVM: VMX: Move eVMCS code to dedicated files 2018-12-14 14:00:06 +01:00
vmx.c KVM: VMX: Expose nested_vmx_allowed() to nested VMX as a non-inline 2018-12-14 17:59:45 +01:00
vmx.h KVM: VMX: Expose nested_vmx_allowed() to nested VMX as a non-inline 2018-12-14 17:59:45 +01:00