Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1328457ybz; Wed, 22 Apr 2020 18:43:31 -0700 (PDT) X-Google-Smtp-Source: APiQypKD/L/eI1tOfXmMyIBmRYkTqcH3Iwv7CLjS+MQ2vugTEnXnOi3gIK3MJLQXOCgdCdUYdpkP X-Received: by 2002:a17:906:29c4:: with SMTP id y4mr830961eje.95.1587606211304; Wed, 22 Apr 2020 18:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587606211; cv=none; d=google.com; s=arc-20160816; b=BFg9V0lVeNyIWPm5MroRDGb453Ey4gYQ2OTQWe2Q2+c3EqnQMQQg+LIhdE7Qgq0mbv 3QRzwS2O8U0QAJUoBGfP2MUI1m26YO6NnHhWYpLDo0MSxp9YrZiE5tvxGBXan3TvpkmR eIQdxNO9K8LiqCjUkeC/89381OJg7U0+JiF8bBcGLGb1pdj3dz2D8r8wKdW0LHcIEfsn aAzv82tMIjRMpTobqtqd9kcGAe4ikTWqTlgUr3veTNc7qHVPEaIT2eugD5unfh+NVDon RRRlnPCbPz7MWUPgjsY9NkdTcnt6rmZo147aFZ0ydbMZW8otED7yLd6bw1G70W5F71DV iC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=RFqDP3KYzUGe63e0QoUDMvCQc5NpRqjfC5ItDJLrXa0=; b=PDgs4Ta+LuwZb9XxZNAQuC1ocAqNCmCvR6OUgscW6X4HC0UeS8vFEenkphEABkZ1Sy gqEWdIrUwrDkxbCmA5YwKmWBcIsRQavOJgwp/h1darHthut51vJ4mOsO4eWHN3K/5Lmc V7b+yMabpLA81I/gjegFYn1ZQZqmudn4XdH+IMlBMRuY7IbdVMVUEvgzr+2hruaAQ3OE J+WeDgOZkbLleR0DnV4VosZoqYM435Kq7UW/NlJkP14uXC76na+94lp2HYi6Iepd/FLB khP3V4IrXDEwadpCcwy0MsMoga1D+clB6LAygtbvyGkg3HOKW79UccNMlKHMV3NBcrx/ W5AQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o4si481835edb.178.2020.04.22.18.43.08; Wed, 22 Apr 2020 18:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726271AbgDWBli (ORCPT + 99 others); Wed, 22 Apr 2020 21:41:38 -0400 Received: from mga14.intel.com ([192.55.52.115]:59945 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgDWBli (ORCPT ); Wed, 22 Apr 2020 21:41:38 -0400 IronPort-SDR: sQ9WEnTgJFmZ4m2fFR7xOKLQ13E9KDDiscG0eAMZvq73Yr+Rvr18iyLRbcOEfDQIlkkZxvYw3K oFvZqVNH3yUg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2020 18:41:37 -0700 IronPort-SDR: CD2YxbVKG2TZwAYql6zhg9T7ino1fY1Mi5HuKZB8EH+PrVBtjVFDYNpQVW0QQZLAhDq21NCJ8o YIB60eV6aoAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,305,1583222400"; d="scan'208";a="365856621" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by fmsmga001.fm.intel.com with ESMTP; 22 Apr 2020 18:41:37 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 53EBF3019B5; Wed, 22 Apr 2020 18:41:37 -0700 (PDT) Date: Wed, 22 Apr 2020 18:41:37 -0700 From: Andi Kleen To: John Haxby Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Jonathan Corbet , x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/1] x86/fpu: Allow clearcpuid= to clear several bits Message-ID: <20200423014137.GM608746@tassilo.jf.intel.com> References: <03a3a4d135b17115db9ad91413e21af73e244500.1587555769.git.john.haxby@oracle.com> <20200422143554.GI608746@tassilo.jf.intel.com> <96EA2DF4-7490-4FF0-BB3E-EC9157517918@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96EA2DF4-7490-4FF0-BB3E-EC9157517918@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > I did wonder about that. However, cmdline_find_option() is specifically documented as > > * Find a non-boolean option (i.e. option=argument). In accordance with > * standard Linux practice, if this option is repeated, this returns the > * last instance on the command line. Okay so would need a special version that uses the first and an option to pass the cmdline string. > > And since that appeared in 2017 I decided to stick with the new-fangled interface :) This is a little-used feature; I'm not sure it's worth the effort of parsing the command line for the old style. What do you think? I'm not sure it's that little used. We use it quite a bit for testing and workarounds, and it might be that some of those are deployed. -Andi