KVM: SVM: Do not setup frame pointer in __svm_vcpu_run
PATCH 1/1 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 <[email protected]>
Signed-off-by Uros Bizjak <[email protected]>
--- arch/x86/kvm/svm/vmenter.S | 1 - 1 file changed, 1 deletion(-)
arch/x86/kvm/svm/vmenter.S +0 -1
@@ -35,7 +35,6 @@ */ SYM_FUNC_START(__svm_vcpu_run) push %_ASM_BP - mov %_ASM_SP, %_ASM_BP #ifdef CONFIG_X86_64 push %r15 push %r14
Signature · 1 line
2.25.2
Quoted 16 lines · Uros Bizjak
__svm_vcpu_runis 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 <[email protected]>Signed-off-by Uros Bizjak <[email protected]>--- arch/x86/kvm/svm/vmenter.S | 1 - 1 file changed, 1 deletion(-)arch/x86/kvm/svm/vmenter.S +0
-0
arch/x86/kvm/svm/vmenter.S line 40
Quoted 7 lines
arch/x86/kvm/svm/vmenter.S +0
-1@@ -35,7 +35,6 @@ */ SYM_FUNC_START(__svm_vcpu_run) push %_ASM_BP - mov %_ASM_SP, %_ASM_BP #ifdef CONFIG_X86_64 push %r15 push %r14
Queued, thanks.
Paolo