Re: [PATCH 30/30] KVM: nSVM: implement KVM_GET_NESTED_STATE and KVM_SET_NESTED_STATE

2020-06-04 Thread Paolo Bonzini
Sorry I missed this. On 02/06/20 02:11, Krish Sadhukhan wrote: >> >> + >> +    /* SMM temporarily disables SVM, so we cannot be in guest mode.  */ >> +    if (is_smm(vcpu) && (kvm_state->flags & >> KVM_STATE_NESTED_GUEST_MODE)) >> +    return -EINVAL; >> + >> +    if (!(kvm_state->flags &

Re: [PATCH 30/30] KVM: nSVM: implement KVM_GET_NESTED_STATE and KVM_SET_NESTED_STATE

2020-06-01 Thread Krish Sadhukhan
On 5/29/20 8:39 AM, Paolo Bonzini wrote: 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

[PATCH 30/30] KVM: nSVM: implement KVM_GET_NESTED_STATE and KVM_SET_NESTED_STATE

2020-05-29 Thread Paolo Bonzini
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