Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp958560lqa; Sun, 28 Apr 2024 11:27:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkyxx3QVmFRFzwZ9Yc1uGY66ndlGpDuiS9TJ/wAbVlhCOLF57sCmZhZxopzpn1DisJRqPFfYZPLX+ituixy6Z6VMcT1LRbYMyXgit6dA== X-Google-Smtp-Source: AGHT+IG8JGiwG9LmTSrK91Rr9PmkujdntZM1fz8+bELxVaJMDDt0C9yaYVu2ZiHXeXoZl5AZ7lGr X-Received: by 2002:a05:622a:5486:b0:437:4813:431b with SMTP id ep6-20020a05622a548600b004374813431bmr9546443qtb.35.1714328861376; Sun, 28 Apr 2024 11:27:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714328861; cv=pass; d=google.com; s=arc-20160816; b=NUPTN+YIVj5FTzbNC6rnx+bpCKLzNFwYjdoEkJx4FfYjWOIy6Xil06AHNVrs23EzDg RT4/4jp33RWzQa7X135Os9AJtAndXCmVtm96CnSyY5spM9AHVZlLBwntos5zHuI7llNl kT7PQn1FWawMtZj8QpyJgVD8pgytjfhevX7avlJNKynTDfJMLLcxsQ+IyHXAAjA90kbS Ww3PPsnRasBY9yfMKIvwaHMaWJazrN1YNN5XVuYjwRHabC4aYgTPFCjZh1rbk4sHf6A0 WRyqLV6w6wPJNlZFRthr7Pyu4cyyte8r2RnD4zX2NvotTwLBAxMdCHw3j7lP6yfXHYfe etHw== 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=8LO+Vbu0GXOa88VCWMTXRnKezCCEZXtnWJGdmYc8JQg=; fh=8yC7c3xKvho0NS1AVEiaYuUS12wK5jrBHtkzZGupjsw=; b=saZb3O+mMADm7knZBho5ymcTos+6vWRnvEYLV44cyVdeZ4ZJlskYYJoJsTOwr/jJQs lKlhAck3UPn/+CDZraL7eva7BNfHMFx1N79IssMlYfWnCSvBc3PmlLlIoctkg0Erk3ME 4x7h5ik/eOSo6j4A9J33x+o6npgIF3uO2ndLnD7ieUSlfVjOf8EgioZr8FEGgc9pAxFA bFR4QYvXB688JDilJVCojrndhx4VQsX4Q9KCIr8oJg/cCFu/9X4durgetGIOD7EKevKq 26eUy55HLGKdW+w8eRYju6jQezfXYCrb4vSOpWyPL8MBkZv3ni/gOiPuipCitAFuyvtJ lurg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=CJDRk3rb; 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-161538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161538-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 18-20020ac85952000000b0043ab8ce7d52si3139266qtz.518.2024.04.28.11.27.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 11:27:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=CJDRk3rb; 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-161538-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161538-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2050B1C20C69 for ; Sun, 28 Apr 2024 18:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D34574418; Sun, 28 Apr 2024 18:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="CJDRk3rb" 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 E50E373534 for ; Sun, 28 Apr 2024 18:27:33 +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=1714328855; cv=none; b=d8yd4idZ1sYTPQn6xjtRW1kG84qvCv5CLmVBnSFo2+RNd52gYEA8Jq5AbvYWtMS69tUZLqA4vTkKo55Z/XCOf+2UKiYSp4UmWStfkgjEVpaEHuHVW1ygFBkD3CqBEobHpMZ7KX0yuv11QZiWw6s8bWApujfRe19QlxWZCxpcP+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714328855; c=relaxed/simple; bh=5l4qF059Jl+xZK4vczGzOFodQkWmNupernBCDwDVl/0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JyggzSYwjg3vGmNwqJ2Ln0jkP+GUhtbpWTrX9q7e3DeLxZS8VDEf1LtktaEOsnAl+Xs+1N7CFP+RbkkuYGMnieDAagr87gzfVQOqbncXx6w9eNJpal1rGDq/UkGYUm3thpdq4nKLth0lVUbb45krHw2RI0y+s5k+qTYMZ2k+yZc= 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=CJDRk3rb; 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 D0E1940E0187; Sun, 28 Apr 2024 18:27:31 +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 jHKaPin2l2oW; Sun, 28 Apr 2024 18:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714328847; bh=8LO+Vbu0GXOa88VCWMTXRnKezCCEZXtnWJGdmYc8JQg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CJDRk3rb863RBLi84AgiqtF9j/5FQmQO8m9PxU8fWffYIgxzeHilmsTdUSN4B5Mh4 eIQlQalZscgCkLtbm7RKM3u9BuMoBIU+LKBWg/SxY6wEvaAT8j/Z5ptMqcM/S8TfRv cL8Rm5wgDodX53uYuDpfMJpEGcy/e5yT0DN6++5XsALrEQ67aoD5IH09qcWN9ztCUA BYLUNMRawuObmtXv5cri+AtGx7IzBHx6PMJ0gZD5aUUehOp99VdvNAZ73Q/bgR8fsA Yw9TZQvHC034TEIWD5VnjwPh5S/h2tlhI47r5Nx/JmbOLoXu6WHMNJ+yy1zjQISxgT ZXLZwZdin8+rSRZ9DBKdOoEEo5hjyUOwiomIv0dIIgc6uRpju3lMmcPbRD1CQ/fsEk exUXJP0OMPX0yjBdFlsV4FNicfdqwIuk1JHHBIZUOcHkfXRIjL54zBIt74PoD7z81l /ZTjvRI2S9kyKV1jhGvmKsY6JonhRG+oDvlIfzezpyl4m979A6E6tod5llqcqEruV5 fCWg3ubwMHKy1P9LLDNrOB00IyD/MYaxjxPrHIonaI/e2sLF/HiPBK9pPm++5x29Fc kjNy40YCN0cq3WYxN/0w8ujFmzYTGR+qC/J3pTYQX4PhezmWlBTsIEop2DD37p7WV7 mBA2KAfy3N3hr8uHq1L8vedI= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (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 936A240E016B; Sun, 28 Apr 2024 18:27:15 +0000 (UTC) Date: Sun, 28 Apr 2024 20:27:14 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , Luis Chamberlain , Paolo Bonzini , "Raj, Ashok" , "Si, Bingsong" , "linux-kernel@vger.kernel.org" , "patches@lists.linux.dev" Subject: Re: [PATCH v4 29/71] x86/cpu/intel: Switch to new Intel CPU model defines Message-ID: <20240428182714.GGZi6VAr-oBybEOXnO@fat_crate.local> References: <20240424181245.41141-1-tony.luck@intel.com> <20240424181508.41713-1-tony.luck@intel.com> <20240425104624.GCZio0gDJABGjzoan1@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, Apr 25, 2024 at 04:29:37PM +0000, Luck, Tony wrote: > But since it is only used in one place, I should just do that test inline without > a helper: > > if (c->x86_vfm == spectre_bad_microcodes[i].vfm && > c->x86_stepping == spectre_bad_microcodes[i].stepping) > return (c->microcode <= spectre_bad_microcodes[i].microcode); Right. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette