]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit360e8ecddd36cd9faa33a6ae991a767b4dffaf32
tree3cca238e30286de592b2cde5cb19251744c9319b
parent7b594eaf53159643f67e1d38dca650e4dcd80170
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: 93284d04979d ("KVM: SVM: Split svm_vcpu_run inline assembly to separate file")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile