Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-05 Thread Thomas Gleixner
Tim, On Mon, 5 Nov 2018, Tim Chen wrote: > On 11/03/2018 11:07 AM, Thomas Gleixner wrote: > >>case X86_BUG_SPECTRE_V2: > >>return sprintf(buf, "%s%s%s%s%s%s\n", > >> spectre_v2_strings[spectre_v2_enabled], > >> - boot_cpu_has(X86_FEATURE_USE_IBPB) ? ",

Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-05 Thread Thomas Gleixner
Tim, On Mon, 5 Nov 2018, Tim Chen wrote: > On 11/03/2018 11:07 AM, Thomas Gleixner wrote: > >>case X86_BUG_SPECTRE_V2: > >>return sprintf(buf, "%s%s%s%s%s%s\n", > >> spectre_v2_strings[spectre_v2_enabled], > >> - boot_cpu_has(X86_FEATURE_USE_IBPB) ? ",

Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-05 Thread Tim Chen
On 11/03/2018 11:07 AM, Thomas Gleixner wrote: > Tim, > > On Tue, 30 Oct 2018, Tim Chen wrote: >> Extract the logic to show IBPB, STIBP usages in cpu_show_common() >> into helper functions. >> >> Later patches will add other userspace Spectre v2 mitigation modes. >> This patch makes it easy to

Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-05 Thread Tim Chen
On 11/03/2018 11:07 AM, Thomas Gleixner wrote: > Tim, > > On Tue, 30 Oct 2018, Tim Chen wrote: >> Extract the logic to show IBPB, STIBP usages in cpu_show_common() >> into helper functions. >> >> Later patches will add other userspace Spectre v2 mitigation modes. >> This patch makes it easy to

Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-03 Thread Thomas Gleixner
Tim, On Tue, 30 Oct 2018, Tim Chen wrote: > Extract the logic to show IBPB, STIBP usages in cpu_show_common() > into helper functions. > > Later patches will add other userspace Spectre v2 mitigation modes. > This patch makes it easy to show IBPB and STIBP > usage scenario according to the

Re: [Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-11-03 Thread Thomas Gleixner
Tim, On Tue, 30 Oct 2018, Tim Chen wrote: > Extract the logic to show IBPB, STIBP usages in cpu_show_common() > into helper functions. > > Later patches will add other userspace Spectre v2 mitigation modes. > This patch makes it easy to show IBPB and STIBP > usage scenario according to the

[Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-10-30 Thread Tim Chen
Extract the logic to show IBPB, STIBP usages in cpu_show_common() into helper functions. Later patches will add other userspace Spectre v2 mitigation modes. This patch makes it easy to show IBPB and STIBP usage scenario according to the mitigation mode. Signed-off-by: Tim Chen ---

[Patch v4 03/18] x86/speculation: Reorganize cpu_show_common()

2018-10-30 Thread Tim Chen
Extract the logic to show IBPB, STIBP usages in cpu_show_common() into helper functions. Later patches will add other userspace Spectre v2 mitigation modes. This patch makes it easy to show IBPB and STIBP usage scenario according to the mitigation mode. Signed-off-by: Tim Chen ---