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

From: Paolo Bonzini
Date: Tue May 04 2021 - 04:06:36 EST

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.