linux/arch/x86/kvm/svm
Paolo Bonzini 33b2217245 KVM: x86: move nested-related kvm_x86_ops to a separate struct
Clean up some of the patching of kvm_x86_ops, by moving kvm_x86_ops related to
nested virtualization into a separate struct.

As a result, these ops will always be non-NULL on VMX.  This is not a problem:

* check_nested_events is only called if is_guest_mode(vcpu) returns true

* get_nested_state treats VMXOFF state the same as nested being disabled

* set_nested_state fails if you attempt to set nested state while
  nesting is disabled

* nested_enable_evmcs could already be called on a CPU without VMX enabled
  in CPUID.

* nested_get_evmcs_version was fixed in the previous patch

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-04-23 09:04:57 -04:00
..
avic.c KVM: SVM: Move AVIC code to separate file 2020-04-03 10:53:56 -04:00
nested.c KVM: x86: move nested-related kvm_x86_ops to a separate struct 2020-04-23 09:04:57 -04:00
pmu.c
sev.c KVM: SVM: Fix build error due to missing release_pages() include 2020-04-15 12:08:37 -04:00
svm.c KVM: x86: move nested-related kvm_x86_ops to a separate struct 2020-04-23 09:04:57 -04:00
svm.h KVM: x86: move nested-related kvm_x86_ops to a separate struct 2020-04-23 09:04:57 -04:00
vmenter.S KVM: SVM: Do not setup frame pointer in __svm_vcpu_run 2020-04-15 12:08:38 -04:00