]> xenbits.xensource.com Git - xen.git/commit
x86: Support indirect thunks from assembly code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Feb 2018 11:41:00 +0000 (12:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Feb 2018 11:41:00 +0000 (12:41 +0100)
commit9089da9cd06875be6c1022d59a6651cf3919da2e
treee4432181652d4ee603d7a9a30a89895137c69b41
parent8edfc82f67f25137909dda13e6658cba4d1e5d26
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]