KVM: SVM: Create a stack frame in __svm_sev_es_vcpu_run()
authorSean Christopherson <seanjc@google.com>
Fri, 23 Feb 2024 20:42:32 +0000 (12:42 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 9 Apr 2024 17:21:10 +0000 (10:21 -0700)
commit4367a75887ec8d68932cd84ea9cffe24d7a55fa0
tree989a7eafa572288b9798f3b6dbdeb40337ef942c
parentadac42bf42c1608f23938c03e3ca53fa6c87f337
KVM: SVM: Create a stack frame in __svm_sev_es_vcpu_run()

Now that KVM uses the host save area to context switch RBP, i.e.
preserves RBP for the entirety of __svm_sev_es_vcpu_run(), create a stack
frame using the standared FRAME_{BEGIN,END} macros.

Note, __svm_sev_es_vcpu_run() is subtly not a leaf function as it can call
into ibpb_feature() via UNTRAIN_RET_VM.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20240223204233.3337324-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/vmenter.S