On 2020/4/9 23:55, Paolo Bonzini wrote:
On 09/04/20 17:42, Xu, Like wrote:
Yes, I assume the svm->vmcb->control.exit_code is referred.
What makes me confused is
why we need "vmx->exit_reason" and "vmx->fail"
for the same general purpose, but svm does not.
Because VMLAUNCH/VMRESUME can also report vmFailValid and vmFailInvalid
via the carry and zero flags, there is no equivalent of that for AMD
virtualization extensions.
Oh, this makes sense to me. Thanks!
Let me confirm it from both specifications.
Paolo