lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 9 Jan 2019 17:03:55 +0000
From:   "Moger, Babu" <Babu.Moger@....com>
To:     Borislav Petkov <bp@...e.de>, Ingo Molnar <mingo@...nel.org>
CC:     Linus Torvalds <torvalds@...ux-foundation.org>,
        x86-ml <x86@...nel.org>, lkml <linux-kernel@...r.kernel.org>,
        James Morse <james.morse@....com>,
        Fenghua Yu <fenghua.yu@...el.com>,
        Reinette Chatre <reinette.chatre@...el.com>,
        Tony Luck <tony.luck@...el.com>
Subject: RE: [PATCH] x86/cache: Rename config option to CONFIG_X86_RESCTRL

Looks good to me. Sanity tested the patch.

> -----Original Message-----
> From: Borislav Petkov <bp@...e.de>
> Sent: Tuesday, January 8, 2019 11:14 AM
> To: Ingo Molnar <mingo@...nel.org>
> Cc: Linus Torvalds <torvalds@...ux-foundation.org>; x86-ml
> <x86@...nel.org>; lkml <linux-kernel@...r.kernel.org>; James Morse
> <james.morse@....com>; Moger, Babu <Babu.Moger@....com>;
> Fenghua Yu <fenghua.yu@...el.com>; Reinette Chatre
> <reinette.chatre@...el.com>; Tony Luck <tony.luck@...el.com>
> Subject: [PATCH] x86/cache: Rename config option to CONFIG_X86_RESCTRL
> 
> Will queue to x86/urgent if no issues.
> 
> ---
> From: Borislav Petkov <bp@...e.de>
> 
> CONFIG_RESCTRL is too generic. The final goal is to have a generic
> option called like this which is selected by the arch-specific ones
> CONFIG_X86_RESCTRL and CONFIG_ARM64_RESCTRL. The generic one will
> cover the resctrl filesystem and other generic and shared bits of
> functionality.
> 
> Signed-off-by: Borislav Petkov <bp@...e.de>
> Suggested-by: Ingo Molnar <mingo@...nel.org>
> Requested-by: Linus Torvalds <torvalds@...ux-foundation.org>

Tested-by: Babu Moger <babu.moger@....com>

> Cc: Babu Moger <babu.moger@....com>
> Cc: Fenghua Yu <fenghua.yu@...el.com>
> Cc: James Morse <james.morse@....com>
> Cc: Reinette Chatre <reinette.chatre@...el.com>
> Cc: Tony Luck <tony.luck@...el.com>
> Cc: x86@...nel.org
> ---
>  Documentation/x86/resctrl_ui.txt     | 2 +-
>  arch/x86/Kconfig                     | 2 +-
>  arch/x86/include/asm/resctrl_sched.h | 4 ++--
>  arch/x86/kernel/cpu/Makefile         | 2 +-
>  arch/x86/kernel/cpu/resctrl/Makefile | 4 ++--
>  include/linux/sched.h                | 2 +-
>  6 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/Documentation/x86/resctrl_ui.txt
> b/Documentation/x86/resctrl_ui.txt
> index d9aed8303984..e8e8d14d3c4e 100644
> --- a/Documentation/x86/resctrl_ui.txt
> +++ b/Documentation/x86/resctrl_ui.txt
> @@ -9,7 +9,7 @@ Fenghua Yu <fenghua.yu@...el.com>
>  Tony Luck <tony.luck@...el.com>
>  Vikas Shivappa <vikas.shivappa@...el.com>
> 
> -This feature is enabled by the CONFIG_RESCTRL and the X86 /proc/cpuinfo
> +This feature is enabled by the CONFIG_X86_RESCTRL and the x86
> /proc/cpuinfo
>  flag bits:
>  RDT (Resource Director Technology) Allocation - "rdt_a"
>  CAT (Cache Allocation Technology) - "cat_l3", "cat_l2"
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index 6185d4f33296..15af091611e2 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -446,7 +446,7 @@ config RETPOLINE
>  	  branches. Requires a compiler with -mindirect-branch=thunk-extern
>  	  support for full protection. The kernel may run slower.
> 
> -config RESCTRL
> +config X86_RESCTRL
>  	bool "Resource Control support"
>  	depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)
>  	select KERNFS
> diff --git a/arch/x86/include/asm/resctrl_sched.h
> b/arch/x86/include/asm/resctrl_sched.h
> index 54990fe2a3ae..40ebddde6ac2 100644
> --- a/arch/x86/include/asm/resctrl_sched.h
> +++ b/arch/x86/include/asm/resctrl_sched.h
> @@ -2,7 +2,7 @@
>  #ifndef _ASM_X86_RESCTRL_SCHED_H
>  #define _ASM_X86_RESCTRL_SCHED_H
> 
> -#ifdef CONFIG_RESCTRL
> +#ifdef CONFIG_X86_RESCTRL
> 
>  #include <linux/sched.h>
>  #include <linux/jump_label.h>
> @@ -88,6 +88,6 @@ static inline void resctrl_sched_in(void)
> 
>  static inline void resctrl_sched_in(void) {}
> 
> -#endif /* CONFIG_RESCTRL */
> +#endif /* CONFIG_X86_RESCTRL */
> 
>  #endif /* _ASM_X86_RESCTRL_SCHED_H */
> diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
> index ac78f90aea56..b6fa0869f7aa 100644
> --- a/arch/x86/kernel/cpu/Makefile
> +++ b/arch/x86/kernel/cpu/Makefile
> @@ -39,7 +39,7 @@ obj-$(CONFIG_CPU_SUP_UMC_32)		+=
> umc.o
>  obj-$(CONFIG_X86_MCE)			+= mce/
>  obj-$(CONFIG_MTRR)			+= mtrr/
>  obj-$(CONFIG_MICROCODE)			+= microcode/
> -obj-$(CONFIG_RESCTRL)			+= resctrl/
> +obj-$(CONFIG_X86_RESCTRL)		+= resctrl/
> 
>  obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
> 
> diff --git a/arch/x86/kernel/cpu/resctrl/Makefile
> b/arch/x86/kernel/cpu/resctrl/Makefile
> index 6895049ceef7..1cabe6fd8e11 100644
> --- a/arch/x86/kernel/cpu/resctrl/Makefile
> +++ b/arch/x86/kernel/cpu/resctrl/Makefile
> @@ -1,4 +1,4 @@
>  # SPDX-License-Identifier: GPL-2.0
> -obj-$(CONFIG_RESCTRL)	+= core.o rdtgroup.o monitor.o
> -obj-$(CONFIG_RESCTRL)	+= ctrlmondata.o pseudo_lock.o
> +obj-$(CONFIG_X86_RESCTRL)	+= core.o rdtgroup.o monitor.o
> +obj-$(CONFIG_X86_RESCTRL)	+= ctrlmondata.o pseudo_lock.o
>  CFLAGS_pseudo_lock.o = -I$(src)
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index 89541d248893..224666226e87 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -995,7 +995,7 @@ struct task_struct {
>  	/* cg_list protected by css_set_lock and tsk->alloc_lock: */
>  	struct list_head		cg_list;
>  #endif
> -#ifdef CONFIG_RESCTRL
> +#ifdef CONFIG_X86_RESCTRL
>  	u32				closid;
>  	u32				rmid;
>  #endif
> --
> 2.19.1
> 
> --
> Regards/Gruss,
>     Boris.
> 
> SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
> HRB 21284 (AG Nürnberg)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ