]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Create a stack frame in vCPU-run
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 25 Jan 2019 15:41:11 +0000 (07:41 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:13 +0000 (22:48 +0100)
commit3bd30d8a47a1e4114ffc476b8edcc3869bd14be2
tree24043b078a88f836254fa056d6d35f3d3171850f
parent6c6a58cc62a0b3cbe87fb38f997c533b9e3d3b48
KVM: VMX: Create a stack frame in vCPU-run

...in preparation for moving to a proper assembly sub-routnine.
vCPU-run isn't a leaf function since it calls vmx_update_host_rsp()
and vmx_vmenter().  And since we need to save/restore RBP anyways,
unconditionally creating the frame costs a single MOV, i.e. don't
bother keying off CONFIG_FRAME_POINTER or using FRAME_BEGIN, etc...

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