Re: [PATCH 4/4] KVM: nVMX: Map enlightened VMCS upon restore when possible

Paolo Bonzini
2021-05-04T08:06:37Z

On 04/05/21 10:02, Vitaly Kuznetsov wrote:
> I still dislike the divergence and the fact
> that 'if (vmx->nested.hv_evmcs)' checks scattered across the code are
> not fully valid. E.g. how do we fix immediate KVM_GET_NESTED_STATE after
> KVM_SET_NESTED_STATE without executing the vCPU problem?

You obviously have thought about this more than I did, but if you can
write a testcase for that as well, I can take a look.

Thanks,

Paolo