Skip to content
Commit 7f4b5cde authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Paolo Bonzini
Browse files

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Message-Id: <01fae42917bacad18be8d2cbc771353da6603473.1587398610.git.jpoimboe@redhat.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Fixes: 199cd1d7

 ("KVM: SVM: Split svm_vcpu_run inline assembly to separate file")
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2ca1a06a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment