Re: [PATCH 0/4] KVM: nVMX: prepare_vmcs02 optimizations

From: Paolo Bonzini
Date: Tue Jan 02 2018 - 08:02:32 EST


On 02/01/2018 02:05, Wanpeng Li wrote:
> The issue is still there after applying this to both L0 and L1,
> actually, I can observe a vmentry fail just before the splatting in L0
> w/ and w/o the above code. In addition, I comment out the other
> testcases in unittests.cfg except vmx_controls, then run
> ./run_tests.sh.

Ok, I didn't understand that you're running vmx.flat inside L1 (thus
creating an L3 guest). The patch I sent is wrong, because
SECONDARY_EXEC_DESC should always be clear in vmx->secondary_exec_control.

Note that even with "-cpu host,+vmx,-umip" I get a hang at

PASS: Use TPR shadow enabled: TPR threshold 0x10: vmlaunch fails

So that might not be entirely related. However, the failures with
descriptor exiting are new.

Paolo