]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use RAX as the scratch register during vCPU-run
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:41:15 +0000 (07:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:15 +0000 (22:48 +0100)
commitc7423584ce67f88bd96f78682065c7e38128e451
tree04a1631f17bbfd156d6f1332103eedfcac56b973
parent02f750923dfa1dce7d7bd5885e89372141d0d194
KVM: VMX: Use RAX as the scratch register during vCPU-run

...to prepare for making the sub-routine callable from C code.  That
means returning the result in RAX.  Since RAX will be used to return the
result, use it as the scratch register as well to make the code readable
and to document that the scratch register is more or less arbitrary.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmenter.S