Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4078668ybc; Thu, 14 Nov 2019 21:16:33 -0800 (PST) X-Google-Smtp-Source: APXvYqx7F7OEqLtqpE0PXRzgjcwpX4vNz2Sr5DBBWXFOpnfgDgB627BeoGvT5mTN7EhN70oN1btq X-Received: by 2002:a17:906:d052:: with SMTP id bo18mr11253165ejb.128.1573794993318; Thu, 14 Nov 2019 21:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573794993; cv=none; d=google.com; s=arc-20160816; b=psJqmCTnRsfPwZzhiV4fhsJ/MGSxzCrkKmNCU38Zp2yrVxWvvxcXu54p8STmroifv1 pzxm9Z1dC79uoo0YwsbA7BeF3S4hG8ygnrItSwQt+8ROugVEKgAi0h0zE7Q1lXP4iRpp aNhz3dZ8JXd94lLonHn9kNzX2Qx6LUB7gQPe+BLq4LuALn9Z/iuuyxap2zL9yb4FPmLS FiMrtKlR+CtkfU6Iuefml/NR9h50bhYowpD6/j5W7IaWexPZkJ+K9dq0W7xxSIbyvQf6 RYA8x//l2gVOW8IucfOREjXlLPtR9s8y5+qVGICveggIghtnrm2JoxhGGh0fkIkLIam8 CncQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=+WXxzBS8lzM+/GsKQ6OJ0Mg8ddLI2BUqXFF4T73ILiw=; b=vvbAJKscajThitIZgKubMsEoPfQO9lgGifAQjoSG0CteCaVdnGs2A/4OM2tK+WXeC7 kfSMhdSb4/yGl4M5TCtHdyRkf+c8KNQI6Nfi87iXcisrTEeffZqNH06fZDZX+7ul+QUO xwZI3uyiNLBJojqaQ5kxWwqLT62FeeRcH3K25vxFknD0v4WDJNLTDZ30bwSi+bSvg2Qv uLPWB0adUEVrF4qaNyYkNFN0t8Hv6kLEX1o7x/GVNVjqZ8Vzq/MZ6WS6YixKHvl8yrT8 FwgbhLb0oVTd55rpueRPlP1eipdxSpMFkbShr/2P0ay2k50RA3ig4NRQxWdLlpC97Xhc DZ1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c44si5430367ede.398.2019.11.14.21.16.07; Thu, 14 Nov 2019 21:16:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfKOFNe (ORCPT + 99 others); Fri, 15 Nov 2019 00:13:34 -0500 Received: from mga02.intel.com ([134.134.136.20]:53529 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfKOFNd (ORCPT ); Fri, 15 Nov 2019 00:13:33 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2019 21:13:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,307,1569308400"; d="scan'208";a="208330915" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga006.jf.intel.com with ESMTP; 14 Nov 2019 21:13:28 -0800 From: Chen Yu To: x86@kernel.org Cc: Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Will Deacon , Fenghua Yu , Reinette Chatre , Tony Luck , Andrew Morton , Alexey Dobriyan , Michal Hocko , Kees Cook , Christian Brauner , Shakeel Butt , Casey Schaufler , Konstantin Khlebnikov , Kent Overstreet , Linus Torvalds , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Chen Yu Subject: [PATCH 1/2][v2] resctrl: Add CPU_RESCTRL Date: Fri, 15 Nov 2019 13:24:20 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce a generic option called CPU_RESCTRL which is selected by the arch-specific ones CONFIG_X86_RESCTRL or CONFIG_ARM64_RESCTRL in the future. The generic one will cover the resctrl filesystem and other generic and shared bits of functionality. Suggested-by: Borislav Petkov Signed-off-by: Chen Yu --- arch/Kconfig | 4 ++++ arch/x86/Kconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 5f8a5d84dbbe..3886cf0052a8 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -960,6 +960,10 @@ config RELR config ARCH_HAS_MEM_ENCRYPT bool +config CPU_RESCTRL + bool + def_bool n + source "kernel/gcov/Kconfig" source "scripts/gcc-plugins/Kconfig" diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8ef85139553f..a8a12493e8c2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -455,6 +455,7 @@ config X86_CPU_RESCTRL bool "x86 CPU resource control support" depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD) select KERNFS + select CPU_RESCTRL help Enable x86 CPU resource control support. -- 2.17.1