Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3173930lqo; Tue, 21 May 2024 08:49:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPUi613ZepJtwKlRhEErihrTfow7pTcy4ZPonD+euOcxsKNWgvfmIXEXkDhllgYm+LXfJgHfy27lu2zuKU6w1UXUbaj1yWW9xYSDrQ0A== X-Google-Smtp-Source: AGHT+IEW2aiRfN1AKeqp/UNR1kWEk5kM9sZle4boA2cUl8Wm8QSAQ4rC7QudubtEPFo7ptKV1XSX X-Received: by 2002:a05:6a00:3a0b:b0:6f4:4441:a32b with SMTP id d2e1a72fcca58-6f4e0348488mr33413058b3a.26.1716306560207; Tue, 21 May 2024 08:49:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716306560; cv=pass; d=google.com; s=arc-20160816; b=lYIDNqTRFYVfnpfvC78GniYXZuxpmYz7MpCAquIJbP4qHu1u/0DlfTDvbTBrTDlwCL GfR6iHxmz8i6zt236etIFCWqHNEVLcyByNSkRa5b2sE7qK6Zkn+SMaAp/3wW8JjpAKBV 2B+U4Xjk4tEGK9E3bto2S7SDY3sWQdh4XdSY25Qy734dW26cISPDClT82vxGVkk///5q OFKd43qnzHJuuOh856qDZSwCR/V0t7nB+LaPBEq5h6/fc2aU5e1GJDws6rbBPcUmyFp2 mAR+N26AjdyXz1jccOm66RK9160wiCEHNF2mIwdoemPXmN71r4AJTQkkExsx6hHGPAWP /BOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f/RNA/EIeTYc3JK4n9uBF5elnsWeHtbKI984iWYpmd4=; fh=/WKY/NKbaMNP9XqZrG5HN4ZvyoCGjYraI22HNXi1cTQ=; b=hZR80Ei9Z+eeFZYHLfGO2AupN5IOh5amsjt13TuhLNZq9qqsxacNW8lmRLUebgW8gW yQ0zqsSu0sIhdebPsHFtytlAlRaLtwPVwtKRfQ6a2g/JGJKPwK3DfXiTXSRJOizGnm2A FhYB1R8+8GvwXlkCq+/DTiBgZj91XOPQKIutx4XA2gJbZGdbP/eVAdv2yhWCqP8gSZUV UYhJRGgr6wLYE13z4D9gdwuuc7GLQ4AOfi4fytD6S79D7LQXQdOUisg4xT7QSTIQ/cAz 3lnHy1x2XrZZUlbSfUJOn5GvR7dPZTFG5ENqPLGT73IBJax1wwuMyAb8vuyyWLp3Xbn9 z8OQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j3jEYlKS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-185182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4eb499320si5059051b3a.165.2024.05.21.08.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 08:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=j3jEYlKS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-185182-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185182-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C09B3B2352C for ; Tue, 21 May 2024 15:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 580C57F48D; Tue, 21 May 2024 15:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="j3jEYlKS" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03EB91FBB for ; Tue, 21 May 2024 15:48:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716306518; cv=none; b=fh6LrXvNNFOxU7/UyTZ9wjWjPaAe4JoFpup1LVTm02pZblOTBK8AmpX6O/OyxDt0DiJFQJiK5/FqSYTviQ/n77nSWp6GyD7eTVtYKPqclD/6k4WL+6H+IGAwXEjpvj7y730v3X7oiBQpO6NJHzoIzo8Y8i/3cbOxVEBDRTBsbOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716306518; c=relaxed/simple; bh=pmM6ansB1dZBHsDH5k5F1CVlJa0N3KOCL5F3ugY4XZs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oSvQDxVDdYLHfNg1DDFd5ZTS3YU2TlptEt2Q1MSwf7fQjxyAeSyLn5ueBP4J0ZRQJesHB2LZpmZwMFhBW4dm8fH6ucmHlS2ITFUMmj9BtOpJ8gml+Cpdf6gUd/9B0+VnbBXhCOzbtIOPp6vY/BdXZ4TX+s27cPsuHFe2hvUgSb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=j3jEYlKS; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716306517; x=1747842517; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pmM6ansB1dZBHsDH5k5F1CVlJa0N3KOCL5F3ugY4XZs=; b=j3jEYlKSnrBqztZtWNDamYE91zg1ZBSekZKlj6dezTWX736vQIRliQel 1Xur66nASPWJ6W7m9DQaO5NNMcUGJyvbAEw1NLQbqOyJksAOi8C7L52eq CFShw9mftX/FeuYOawpUFr2so9ajABOedqVHfQdNbnn4gEC6FsduQfroV SnFIkILzLdKyrimF4FrDimcKOW/vjF4bw/RmT9VHfsyBgLzU1wflxaWRJ AlFBJn8JN1BS6twCx1UEdeiE/8KUQnxkgpg0q7YDudIXIM5opxSxcqpsw 69oVqKcE0tCstoNzin9PFpS8OPM7b8Cd4U0Kv8Ro4aCYpB2iPhO27TTgt g==; X-CSE-ConnectionGUID: xWg3PHfUTHWpJ4x5yA8oiw== X-CSE-MsgGUID: sGHEs6r4SEOMP9n9TZPYjg== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="12740355" X-IronPort-AV: E=Sophos;i="6.08,178,1712646000"; d="scan'208";a="12740355" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2024 08:48:36 -0700 X-CSE-ConnectionGUID: ea1Ln2QSRiyduUE4IWDW5g== X-CSE-MsgGUID: uKpOg7O+Rk+t4ZiKxK7GsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,178,1712646000"; d="scan'208";a="37546261" Received: from agluck-desk3.sc.intel.com ([172.25.222.70]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2024 08:48:35 -0700 Date: Tue, 21 May 2024 08:48:34 -0700 From: Tony Luck To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Uros Bizjak , Rick Edgecombe , Arnd Bergmann , Mateusz Guzik , Thomas Renninger , Andi Kleen , linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v6 02/49] x86/cpu: Fix x86_match_cpu() to match just X86_VENDOR_INTEL Message-ID: References: <20240520224620.9480-1-tony.luck@intel.com> <20240520224620.9480-3-tony.luck@intel.com> <20240521074947.GAZkxSG_u08uLDqZ_m@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240521074947.GAZkxSG_u08uLDqZ_m@fat_crate.local> On Tue, May 21, 2024 at 09:49:47AM +0200, Borislav Petkov wrote: > On Mon, May 20, 2024 at 03:45:33PM -0700, Tony Luck wrote: > > Fixes: 644e9cbbe3fc ("Add driver auto probing for x86 features v4") > > Do you really want to backport this to everything since 2012, as that > patch is from then? I didn't include a Cc: stable. Is there some better way to report the source commit for a problem without triggering a backport? > > > @@ -690,6 +690,7 @@ struct x86_cpu_id { > > __u16 model; > > __u16 steppings; > > __u16 feature; /* bit index */ > > + __u16 flags; > > kernel_ulong_t driver_data; > > }; > > > > @@ -700,6 +701,9 @@ struct x86_cpu_id { > > #define X86_STEPPING_ANY 0 > > #define X86_FEATURE_ANY 0 /* Same as FPU, you can't test for that */ > > > > +/* x86_cpu_id::flags */ > > +#define X86_CPU_ID_FLAG_ENTRY_VALID BIT(0) > > I would definitely not want to have those visible in userspace. > > IOW, something like this: Agreed. Looks better to keep the define out of a file. Do you want me to spin a new patch? Or can you fold your change into my patch when applying? -Tony