From: Uros Bizjak Date: Thu, 9 Apr 2020 12:04:40 +0000 (+0200) Subject: KVM: SVM: Do not setup frame pointer in __svm_vcpu_run X-Git-Tag: v5.7-rc3~39^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b61f62d408959a37bb6b19f9521b682aec3a5601;p=thirdparty%2Fkernel%2Flinux.git KVM: SVM: Do not setup frame pointer in __svm_vcpu_run __svm_vcpu_run is a leaf function and does not need a frame pointer. %rbp is also destroyed a few instructions later when guest registers are loaded. Cc: Paolo Bonzini Signed-off-by: Uros Bizjak Message-Id: <20200409120440.1427215-1-ubizjak@gmail.com> Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/svm/vmenter.S b/arch/x86/kvm/svm/vmenter.S index 723887e35e954..bf944334003ae 100644 --- a/arch/x86/kvm/svm/vmenter.S +++ b/arch/x86/kvm/svm/vmenter.S @@ -36,7 +36,6 @@ */ SYM_FUNC_START(__svm_vcpu_run) push %_ASM_BP - mov %_ASM_SP, %_ASM_BP #ifdef CONFIG_X86_64 push %r15 push %r14