Re: [PATCH 2/3] x86/tsx: Minor cleanup and improvements

2021-05-27 Thread Roger Pau Monné
On Thu, May 27, 2021 at 02:25:18PM +0100, Andrew Cooper wrote: > * 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. > * U

Re: [PATCH 2/3] x86/tsx: Minor cleanup and improvements

2021-05-27 Thread Jan Beulich
On 27.05.2021 15:25, Andrew Cooper wrote: > * 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 help

[PATCH 2/3] x86/tsx: Minor cleanup and improvements

2021-05-27 Thread Andrew Cooper
* 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.