Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2019-01-04 Thread Jan Beulich
>>> On 28.12.18 at 17:30, wrote: > On 06/12/2018 10:59, Jan Beulich wrote: > On 03.12.18 at 17:18, wrote: >>> --- a/xen/include/asm-x86/cpufeatures.h >>> +++ b/xen/include/asm-x86/cpufeatures.h >>> @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* > SMAP gets used by

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-28 Thread Andrew Cooper
On 06/12/2018 10:59, Jan Beulich wrote: On 03.12.18 at 17:18, wrote: >> --- a/xen/include/asm-x86/cpufeatures.h >> +++ b/xen/include/asm-x86/cpufeatures.h >> @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* >> SMAP gets used by Xen it >> XEN_CPUFEATURE(LFENCE_DISPAT

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-06 Thread Jan Beulich
>>> On 03.12.18 at 17:18, wrote: > --- a/xen/include/asm-x86/cpufeatures.h > +++ b/xen/include/asm-x86/cpufeatures.h > @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* > SMAP gets used by Xen it > XEN_CPUFEATURE(LFENCE_DISPATCH, (FSCAPINTS+0)*32+12) /* lfence set as > D

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-06 Thread Jan Beulich
>>> On 05.12.18 at 18:09, wrote: > On 05/12/2018 16:50, Jan Beulich wrote: >> >>> --- a/xen/include/asm-x86/cpufeatures.h >>> +++ b/xen/include/asm-x86/cpufeatures.h >>> @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* >>> SMAP gets used by Xen it >>> XEN_CPUFEATURE(LFEN

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-05 Thread Andrew Cooper
On 05/12/2018 16:50, Jan Beulich wrote: > >> --- a/xen/include/asm-x86/cpufeatures.h >> +++ b/xen/include/asm-x86/cpufeatures.h >> @@ -25,6 +25,7 @@ XEN_CPUFEATURE(XEN_SMAP,(FSCAPINTS+0)*32+11) /* >> SMAP gets used by Xen it >> XEN_CPUFEATURE(LFENCE_DISPATCH, (FSCAPINTS+0)*32+12) /* lfenc

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-05 Thread Jan Beulich
>>> On 03.12.18 at 17:18, wrote: > +static void __init noinline amd_probe_legacy_ssbd(void) > +{ > + uint64_t new; > + > + /* > + * Search for mechanisms of controlling Memory Disambiguation. > + * > + * If the CPU reports that it is fixed, there is nothing to do. If we > +

Re: [Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-04 Thread Woods, Brian
On Mon, Dec 03, 2018 at 04:18:18PM +, Andy Cooper wrote: > Introduce a new synthetic LEGACY_SSBD feature and set it if we find > VIRT_SPEC_CTRL offered by our hypervisor, or if we find a working bit in an > LS_CFG register. > > Signed-off-by: Andrew Cooper Reviewd-by: Brian Woods -- Brian

[Xen-devel] [PATCH 5/9] x86/amd: Probe for legacy SSBD interfaces on boot

2018-12-03 Thread Andrew Cooper
Introduce a new synthetic LEGACY_SSBD feature and set it if we find VIRT_SPEC_CTRL offered by our hypervisor, or if we find a working bit in an LS_CFG register. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné CC: Brian Woods --- xen/arch/x86/cpu/amd.c