]> xenbits.xensource.com Git - xen.git/commit
x86: Introduce alternative indirect thunks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 14 Feb 2018 10:32:55 +0000 (11:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Feb 2018 10:32:55 +0000 (11:32 +0100)
commit91f7e4627b6597536ded5b8326da3ca504b1772f
tree19ebeda27182628a36a81ec41a98a7b288a1f1ec
parentf291c01cd6d405927ceb022bdef6479de8b9fb9a
x86: Introduce alternative indirect thunks

Depending on hardware and microcode availability, we will want to replace
IND_THUNK_REPOLINE with other implementations.

For AMD hardware, choose IND_THUNK_LFENCE in preference to retpoline if lfence
is known to be (or was successfully made) dispatch serialising.

This is part of XSA-254.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 858cba0d4c6b6b45180afcb41561fd6585ad51a3
master date: 2018-01-16 17:45:50 +0000
docs/misc/xen-command-line.markdown
xen/arch/x86/cpu/common.c
xen/arch/x86/indirect-thunk.S
xen/arch/x86/spec_ctrl.c
xen/include/asm-x86/cpufeature.h