Hi Paolo,
On 2020/4/9 23:18, Paolo Bonzini wrote:
On 09/04/20 17:11, Xu, Like wrote:
-bool __svm_vcpu_run(unsigned long vmcb_pa, unsigned long *regs);
Just curious if __svm_vcpu_run() will fail to enter SVM guest mode,
and a return value could indicate that nothing went wrong rather than
blindly keeping silent.
That's already available in the exit code (which is 0xffffffff when
vmentry fails).
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.
Thanks,
Like Xu
Paolo