KVM: nSVM: implement KVM_GET_NESTED_STATE and KVM_SET_NESTED_STATE
Similar to VMX, the state that is captured through the currently available
IOCTLs is a mix of L1 and L2 state, dependent on whether the L2 guest was
running at the moment when the process was interrupted to save its state.
In particular, the SVM-specific state for nested virtualization includes
the L1 saved state (including the interrupt flag), the cached L2 controls,
and the GIF.
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/uapi/asm/kvm.h 16 additions, 1 deletionarch/x86/include/uapi/asm/kvm.h
- arch/x86/kvm/cpuid.h 5 additions, 0 deletionsarch/x86/kvm/cpuid.h
- arch/x86/kvm/svm/nested.c 147 additions, 0 deletionsarch/x86/kvm/svm/nested.c
- arch/x86/kvm/svm/svm.c 1 addition, 0 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/vmx/nested.c 0 additions, 5 deletionsarch/x86/kvm/vmx/nested.c
- arch/x86/kvm/x86.c 2 additions, 1 deletionarch/x86/kvm/x86.c
Loading
Please register or sign in to comment