x86/tsx: Minor cleanup and improvements
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 May 2021 13:53:56 +0000 (14:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 27 May 2021 18:34:00 +0000 (19:34 +0100)
commit3670abcaf0324f2aedba0c4dc7939072b27efa1d
tree2485e619492fdedd39dbcca86f243b6aacbca0b9
parent8fe24090d940d760145ccd5e234290be7418b175
x86/tsx: Minor cleanup and improvements

 * Introduce cpu_has_arch_caps and replace boot_cpu_has(X86_FEATURE_ARCH_CAPS)
 * Read CPUID data into the appropriate boot_cpu_data.x86_capability[]
   element, as subsequent changes are going to need more cpu_has_* logic.
 * Use the hi/lo MSR helpers, which substantially improves code generation.

No practical change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/cpuid.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/msr.c
xen/arch/x86/spec_ctrl.c
xen/arch/x86/tsx.c
xen/include/asm-x86/cpufeature.h