[PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-16 Thread Andrew Cooper
MSR_ARCH_CAPS data is now included in featureset information. Replace opencoded checks with regular feature ones. No functional change. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné CC: Wei Liu --- xen/arch/x86/include/asm/cpufeature.h | 7 xen/arch/x86/spec_ctr

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-17 Thread Jan Beulich
On 16.05.2023 16:53, Andrew Cooper wrote: > @@ -401,6 +400,8 @@ static void __init print_details(enum ind_thunk thunk, > uint64_t caps) > cpuid_count(7, 2, &tmp, &tmp, &tmp, &_7d2); > if ( boot_cpu_data.extended_cpuid_level >= 0x8008 ) > cpuid(0x8008, &tmp, &e8b, &tm

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-17 Thread Andrew Cooper
On 17/05/2023 3:47 pm, Jan Beulich wrote: > On 16.05.2023 16:53, Andrew Cooper wrote: >> @@ -401,6 +400,8 @@ static void __init print_details(enum ind_thunk thunk, >> uint64_t caps) >> cpuid_count(7, 2, &tmp, &tmp, &tmp, &_7d2); >> if ( boot_cpu_data.extended_cpuid_level >= 0x800

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-18 Thread Jan Beulich
On 17.05.2023 18:35, Andrew Cooper wrote: > On 17/05/2023 3:47 pm, Jan Beulich wrote: >> On 16.05.2023 16:53, Andrew Cooper wrote: >>> @@ -401,6 +400,8 @@ static void __init print_details(enum ind_thunk thunk, >>> uint64_t caps) >>> cpuid_count(7, 2, &tmp, &tmp, &tmp, &_7d2); >>> if

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-19 Thread Andrew Cooper
On 19/05/2023 7:00 am, Jan Beulich wrote: > On 17.05.2023 18:35, Andrew Cooper wrote: >> On 17/05/2023 3:47 pm, Jan Beulich wrote: >>> On 16.05.2023 16:53, Andrew Cooper wrote: @@ -401,6 +400,8 @@ static void __init print_details(enum ind_thunk thunk, uint64_t caps) cpuid_c

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-22 Thread Jan Beulich
On 19.05.2023 16:38, Andrew Cooper wrote: > On 19/05/2023 7:00 am, Jan Beulich wrote: >> On 17.05.2023 18:35, Andrew Cooper wrote: >>> On 17/05/2023 3:47 pm, Jan Beulich wrote: On 16.05.2023 16:53, Andrew Cooper wrote: > @@ -401,6 +400,8 @@ static void __init print_details(enum ind_thunk

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-22 Thread Andrew Cooper
On 22/05/2023 8:10 am, Jan Beulich wrote: > On 19.05.2023 16:38, Andrew Cooper wrote: >> On 19/05/2023 7:00 am, Jan Beulich wrote: >>> On 17.05.2023 18:35, Andrew Cooper wrote: On 17/05/2023 3:47 pm, Jan Beulich wrote: > On 16.05.2023 16:53, Andrew Cooper wrote: >> @@ -401,6 +400,8 @@

Re: [PATCH 4/4] x86/spec-ctrl: Remove opencoded MSR_ARCH_CAPS check

2023-05-22 Thread Jan Beulich
On 22.05.2023 16:14, Andrew Cooper wrote: > On 22/05/2023 8:10 am, Jan Beulich wrote: >> On 19.05.2023 16:38, Andrew Cooper wrote: >>> On 19/05/2023 7:00 am, Jan Beulich wrote: On 17.05.2023 18:35, Andrew Cooper wrote: > On 17/05/2023 3:47 pm, Jan Beulich wrote: >> On 16.05.2023 16:53,