nested_free_all_saved_vmcss freeing vmx->vmcs01?
Am i missing something, or should nested_free_all_saved_vmcss not call
if (vmx->loaded_vmcs != &vmx->vmcs01)
free_loaded_vmcs(&vmx->vmcs01);?
Quoted 8 lines · Marcelo Tosatti
Am i missing something, or should
nested_free_all_saved_vmcssnot callif (vmx->loaded_vmcs != &vmx->vmcs01) free_loaded_vmcs(&vmx->vmcs01);?
This is relevant if we call nested_free_all_saved_vmcss on cleanup while L2 was still active. In this case, the free_loaded_vmcs(vmx->loaded_vmcs) will free the item's loaded_vmcs we skipped earlier in that function - OK, and now I also understand your patch.
Jan