kvm: Disable objtool frame pointer checking for vmenter.S
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 20 Apr 2020 16:17:37 +0000 (11:17 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Apr 2020 21:11:19 +0000 (17:11 -0400)
commit7f4b5cde24094127ace370c3c6b82fef65d9f71f
tree3cca238e30286de592b2cde5cb19251744c9319b
parent2ca1a06a5440ae8aa7bb0709336d759395b7bbb8
kvm: Disable objtool frame pointer checking for vmenter.S

Frame pointers are completely broken by vmenter.S because it clobbers
RBP:

  arch/x86/kvm/svm/vmenter.o: warning: objtool: __svm_vcpu_run()+0xe4: BP used as a scratch register

That's unavoidable, so just skip checking that file when frame pointers
are configured in.

On the other hand, ORC can handle that code just fine, so leave objtool
enabled in the !FRAME_POINTER case.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Message-Id: <01fae42917bacad18be8d2cbc771353da6603473.1587398610.git.jpoimboe@redhat.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Fixes: 199cd1d7b534 ("KVM: SVM: Split svm_vcpu_run inline assembly to separate file")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile