]> xenbits.xensource.com Git - xen.git/commit
x86: Support indirect thunks from assembly code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Feb 2018 10:20:45 +0000 (11:20 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Feb 2018 10:20:45 +0000 (11:20 +0100)
commit88602190f698aeace6d7e028954a1349997ee0be
tree1c829589c709ac6547c0a53291394c245684cf45
parent62a2624e3c6250c6be8a9248c8fe5a3211834d4d
x86: Support indirect thunks from assembly code

Introduce INDIRECT_CALL and INDIRECT_JMP which either degrade to a normal
indirect branch, or dispatch to the __x86_indirect_thunk_* symbols.

Update all the manual indirect branches in to use the new thunks.  The
indirect branches in the early boot and kexec path are left intact as we can't
use the compiled-in thunks at those points.

This is part of XSA-254.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 7c508612f7a5096b4819d4ef2ce566e01bd66c0c
master date: 2018-01-16 17:45:50 +0000
xen/Rules.mk
xen/arch/x86/Rules.mk
xen/arch/x86/boot/trampoline.S
xen/arch/x86/traps.c
xen/arch/x86/x86_64/entry.S
xen/arch/x86/x86_emulate/x86_emulate.c
xen/common/wait.c
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/indirect_thunk_asm.h [new file with mode: 0644]
xen/include/xen/config.h