Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp586277lqh; Thu, 28 Mar 2024 10:08:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp/ySVN7uFT+YDS9oa0tfEyBuM64F2X9d4V3gfGBOskdD8Aoz2y5hM6vSG2ccJVNQs+YLQgG26SLyav2jZwAk/UVoP51tUs6l33ASPdA== X-Google-Smtp-Source: AGHT+IGPuEC6UytFTU0FW2qfW0mgq4xys8/ciZnm1KO3CSEWRk7zsuIZnnGHy4GTQJ3e6n6Q/HB2 X-Received: by 2002:a50:ccd3:0:b0:568:d5e7:37a1 with SMTP id b19-20020a50ccd3000000b00568d5e737a1mr2334900edj.36.1711645728770; Thu, 28 Mar 2024 10:08:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711645728; cv=pass; d=google.com; s=arc-20160816; b=H/6wMnfYKWaS7Y3qQxm13AEK/06quA1DkkGv8TxMKGHeZPLNNIlVy9920L5wjAZPR0 33eV552TZNBDof4JifwkVll3h1nqt7PKP42hGGUxO9nDhd4fHPzG9Bco9qYR9ngNDXpC 8xwBsbSBgS/0zKIwm6yCev0r9qtyrIZprBE2EqSAUhKKzz/pF4wEl1Rw/Swx0S2dQ6dz X+i8QRw1m4qfR2IDNyOCBlnRTltFAWYWKqgOUnRrXG34h5KtDgVNTFtVx9PHH+upnzfb FGz4s6JqWVTA/wknaaPrJBoxnAAwIWGT/zWXehUkfMa8WtUuzcTe9wS7HLRBD2xy8qUh dUBw== 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=YcObURuT31YF6fcXgSPsh64P2My3TAEfcyXL35rY8xo=; fh=vF1nMX7Orqk8jMzU8H9YUFVJlRzJyi5soLZAnLELLoA=; b=wpQ2jXshE+zbyDz8ixwxErPfcBCTcbkvKSaIoWjdxF+9LpgFvFjxE3r2iNpHr/dRxU VeUOQnBqwjgavciCHhPWFXBHpNnxil5iFfToRMaglRaCdh+4fFfo4PDtSQpFH7ApiD5p Yxg3jM+hU3I83uFofbS/cOAHE/BCu26LC/eEBFBSaGR4LU/+3MIGRa1jvbrbDoxrKaRO +JXci9JAZBPzrbNHPh9nzM83WhQMNCH8/gz6fXplhgMfMIyQV7uGcMAjhPWWFNBQiOlQ Y49Uq82GJ181fTz4c5IbTD+GvNIhVAUI5hQSQoOjl8AEsXbOeZJNZGxe55GGQX4RB5H9 +K+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=CW+WKWsA; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-123339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d24-20020a50f698000000b0056c4f6f2417si928349edn.46.2024.03.28.10.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=CW+WKWsA; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-123339-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 797F11F28458 for ; Thu, 28 Mar 2024 17:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26D985A4C4; Thu, 28 Mar 2024 17:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="CW+WKWsA" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 884B93BBEB for ; Thu, 28 Mar 2024 17:06:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711645584; cv=none; b=DcyidbZItDdjYY9+rXMiyC3dNYyhG8USK7zCcGdwBnscxLE6E19E50zngf+XTdD+FG9Bub6EuAjehjsStuJtUjnq3Ou1Or8wvEBzC04OImsDx4XlA3gHxqmLQ4YWLcV6PAqGXKkNZB5vruWD/gLBiCaY/gsO2c3ZQgGfxModfT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711645584; c=relaxed/simple; bh=X5iFI5zB+kvv16/vMGAF4HiLkTbwEk4Xzh+ReI5bKug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pI1XgvsTcUdROtVFePGE8E/qPf0BUq1Kfq3FmIrLAS107aybE3CByM0tNu4bzlcb3S2YpWYB8WipKnOGzPP8UTqrIteJ4dZB298d4AIfL4SsZDlSGdXrwgqhEfbaqWFvzsKTb/ARIpy3X2HugYQ0wUPn14J7nmEl/C+zMva6tOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=CW+WKWsA; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 9967540E02A5; Thu, 28 Mar 2024 17:06:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YDDV0bws0VxB; Thu, 28 Mar 2024 17:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1711645576; bh=YcObURuT31YF6fcXgSPsh64P2My3TAEfcyXL35rY8xo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CW+WKWsAj6roVN10xIx190S8lWNDznYd2AR/Ro/WBuN/WoJzIbfPEdhWRQJ0btvLE 9S58LFYPzpqT1d2WvEiM5AoDnSRfspZ9pqAa7kZYwHveW4aQNeC2yxQgqnHLuHyVcu CGTqoF2nYGWHqT/yvJtGD1cHg601ymt/evARq2H4JdXuB34BmrVdgXCBjUfpq/lEkx hImma9s8fsjTl8wHup97eG1P2fwgjRMJ2SCUQhbXkwhepFYnLr+PJfsu0Hy82dka/M G5e+rJFF4u39+ONDA3zekt9c8ILpM/kJMh1TSK0/11GybU4XxBN3NrQGTIevkA8u3X xdimA3sFZlB9hEVWZRs+J9Y6lfGa/6GHG3E8BoTehLLdSvz6zz7lEkut8wGx/UWstJ bFBAz4nfQpmSpPfxmiwgVLZsiPS+0/Bsx64UA4JNynNfLs5DUqm/krlESeBU3NTL7F Uiyei4TGXPsPyIcQpATJuv0PXaO5696cWGu3KIZPZF8Mwf3Wj7/lBgngzqMnKiLm7y 00ziU00ID8bUy9uiKLkjnnwXz/rSOkXQ2ia9Q3sLFqvBdVg/+zmPOXqdCGKPsP9qut JwhrkS0QNede0mwDZ4QIWQJFL6xtl1yX8L7qPKzxJQBuk017AoBD72O2wkfTUjeU1r 0qbsVGoS5av1xddJgeiFlNRs= Received: from zn.tnic (p5de8ecf7.dip0.t-ipconnect.de [93.232.236.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2832E40E024C; Thu, 28 Mar 2024 17:06:13 +0000 (UTC) Date: Thu, 28 Mar 2024 18:06:08 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 01/74] x86/cpu/vfm: Add/initialize x86_vfm field to struct cpuinfo_x86 Message-ID: <20240328170608.GFZgWjgGSqFL7kGQkE@fat_crate.local> References: <20240328163746.243023-1-tony.luck@intel.com> <20240328163746.243023-2-tony.luck@intel.com> <20240328164811.GDZgWfSzAWZXO7dUky@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=utf-8 Content-Disposition: inline In-Reply-To: On Thu, Mar 28, 2024 at 04:56:37PM +0000, Luck, Tony wrote: > I could make the raw format of the #define values be CPUID(1).EAX > with the stepping masked out. But then I'd need to add a new field to > the structure instead of overlaying with the vendor/family/model > fields. Yes, that would be better. And if you're going to replace our f/m/s checking with something better, then it better handle the stepping just like the rest. How it is used now doesn't mean a whole lot for the future. And if it is not too important for most checks, you can mask it out with macros. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette