]> xenbits.xensource.com Git - xen.git/commit
x86/intel: optional build of TSX support
authorSergiy Kibrik <Sergiy_Kibrik@epam.com>
Thu, 1 Aug 2024 07:38:00 +0000 (09:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Aug 2024 07:38:00 +0000 (09:38 +0200)
commitb1b017ffb7ad135ff7e726f85a870817c140406e
treec003cee29f59b92137dfdb7101f7b27da7891ed4
parentfb45a35ad7832ea606fa741e10bacd5691b1dd65
x86/intel: optional build of TSX support

Transactional Synchronization Extensions are supported on certain Intel's
CPUs only, hence can be put under CONFIG_INTEL build option.

The whole TSX support, even if supported by CPU, may need to be disabled via
options, by microcode or through spec-ctrl, depending on a set of specific
conditions. To make sure nothing gets accidentally runtime-broken all
modifications of global TSX configuration variables is secured by #ifdef's,
while variables themselves redefined to 0, so that ones can't mistakenly be
written to.

Signed-off-by: Sergiy Kibrik <Sergiy_Kibrik@epam.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.pandoc
xen/arch/x86/Makefile
xen/arch/x86/include/asm/processor.h
xen/arch/x86/spec_ctrl.c