Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp563595yba; Wed, 3 Apr 2019 14:31:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg3C5+Xk8Vce5b6N0yb8bHUS//k1VkR3hXmwenbKAfKnLXXxwxwr3eBBnjRVj4HHG+iRcO X-Received: by 2002:a62:1795:: with SMTP id 143mr1866247pfx.104.1554327090439; Wed, 03 Apr 2019 14:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554327090; cv=none; d=google.com; s=arc-20160816; b=LcnmPXduidxBYoSLmgYAITFXOQC+0fLnwJQo6m/6rvE6BIjhCHexL/e2qrNCsSO2kQ wZgXvF6WEn3sT+H31hSMKNVJDHnGr0tOCTOhNb0o3+MfB+2LNx4A0r3yMQmes/UA68TC o2MNcBvawUnfhOgXQ22kGm10A+KOF5k+7e5PxFuzA0AoLseXzv6xHKKll3hu4/rhFc9n p7MBJ5Qw8KO/bqvKETDXH9iwHA6L+i0nnp8on3Uj/W7QnnKwNvLxTBB6yONXOzZb9h5/ IUGUBCG6ssM+33cu5XXM2Lt9Pdtn3E8eJF6FuljxG9Z+Rm9H8PcgufO0ovU703FNlOAg w3QQ== 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=OW3Yde79Ua632jEfQMasyEKLYzmSyB8P4Pq0fWCeGsk=; b=xZ4oQbwlAPxh7vZ2t0nNFDnqnLArgv0LJgfW9lKuTixZPnITLBfffXgIIrCG/8ROgF yu6gMeGbv4gimg2DNt+S3TJs7g7doV3PqoIlRtpJmZxwfoz0rR4idLfhsuNzMsNu8pHJ W0pixs+cGS2MtHm2fbrfXQD+Bo6Zn27TOw4HLy2SXxXHk1w9EJe2BMS8l0fVPgKlKyxy NgVs2l53Z2y7yRX+81OD3gscDcQzcYF5DzGtUbct73ycrW5kgpNLs8BYMpnczgC8rtsV 5qDFGPeVUOgvPdLA5VHkwO25ewvVcUagfEsp+5LYZVTxmHJBv0R9po3D3KgY/w7ssZjL +JBA== 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 n7si14507426plk.85.2019.04.03.14.31.15; Wed, 03 Apr 2019 14:31:30 -0700 (PDT) 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 S1726974AbfDCVa1 (ORCPT + 99 others); Wed, 3 Apr 2019 17:30:27 -0400 Received: from mga05.intel.com ([192.55.52.43]:37312 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbfDCVaW (ORCPT ); Wed, 3 Apr 2019 17:30:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2019 14:30:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,306,1549958400"; d="scan'208";a="334754289" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga005.fm.intel.com with ESMTP; 03 Apr 2019 14:30:13 -0700 From: Fenghua Yu To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H Peter Anvin" , "Dave Hansen" , "Paolo Bonzini" , "Ashok Raj" , "Peter Zijlstra" , "Kalle Valo" , "Xiaoyao Li " , "Michael Chan" , "Ravi V Shankar" Cc: "linux-kernel" , "x86" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, Fenghua Yu Subject: [PATCH v6 20/20] x86/clearcpuid: Change document for kernel option clearcpuid Date: Wed, 3 Apr 2019 14:22:06 -0700 Message-Id: <1554326526-172295-21-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1554326526-172295-1-git-send-email-fenghua.yu@intel.com> References: <1554326526-172295-1-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since kernel option clearcpuid now supports multiple options and CPU capability flags, the document needs to be changed. Signed-off-by: Fenghua Yu --- .../admin-guide/kernel-parameters.txt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 2b8ee90bb644..0cbeda6d7f16 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -563,17 +563,21 @@ loops can be debugged more effectively on production systems. - clearcpuid=BITNUM [X86] + clearcpuid=BITNUM | FLAG [X86] Disable CPUID feature X for the kernel. See arch/x86/include/asm/cpufeatures.h for the valid bit - numbers. Note the Linux specific bits are not necessarily + numbers or /proc/cpuinfo for valid CPU flags. + Multiple options can be used to disable a few features. + This prevents the feature from being used by the + kernel or shown in /proc/cpuinfo or shown in CPUID + called directly by user programs. + A few notes: + - The Linux specific bits are not necessarily stable over kernel options, but the vendor specific ones should be. - Also note that user programs calling CPUID directly - or using the feature without checking anything - will still see it. This just prevents it from - being used by the kernel or shown in /proc/cpuinfo. - Also note the kernel might malfunction if you disable + - User programs using the feature without checking + anything will still use it. + - The kernel might malfunction if you disable some critical bits. cma=nn[MG]@[start[MG][-end[MG]]] -- 2.19.1