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, 17 Jun 2021 13:45:37 +0000 (14:45 +0100)
commit768138cde899685efb5ec5a1c831b1d4e8794f54
tree120b5bb4f4da28a6d7eb9a93dd4f57d1748365eb
parent0ff7f9c5aa02cd2469a8fc03f1ed262f18933721
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>
(cherry picked from commit 3670abcaf0324f2aedba0c4dc7939072b27efa1d)
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