]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: fix exception entry / build bug, on 64-bit
authorIngo Molnar <mingo@elte.hu>
Mon, 21 Jul 2008 08:57:15 +0000 (10:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 21 Jul 2008 09:03:32 +0000 (11:03 +0200)
commit38b5f2ffea1418bcff1bdcbfd1bb1aecdd3c0d68
tree15eff4d19335ec69ef2c222c800a0073cf10b924
parent4520cc4d864faade6f795d1a4d7c71f93eb8f0e4
KVM: fix exception entry / build bug, on 64-bit

-tip testing found this build bug:

 arch/x86/kvm/built-in.o:(.text.fixup+0x1): relocation truncated to fit: R_X86_64_32 against `.text'
 arch/x86/kvm/built-in.o:(.text.fixup+0xb): relocation truncated to fit: R_X86_64_32 against `.text'
 arch/x86/kvm/built-in.o:(.text.fixup+0x15): relocation truncated to fit: R_X86_64_32 against `.text'
 arch/x86/kvm/built-in.o:(.text.fixup+0x1f): relocation truncated to fit: R_X86_64_32 against `.text'
 arch/x86/kvm/built-in.o:(.text.fixup+0x29): relocation truncated to fit: R_X86_64_32 against `.text'

Introduced by commit 55818be1. The problem is that 'push' will default
to 32-bit, which is not wide enough as a fixup address. (and which would
crash on any real fixup event even if it was wide enough)

Introduce KVM_EX_PUSH to get the proper address push width on 64-bit too.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/kvm_host.h