Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp143348lqb; Tue, 28 May 2024 11:05:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGsSn+5FA8PjkUa3TMulZAc9DaAg/9LGEyRiIxFnbqbn+nsvwbCBpQaZybFOwG4reZ8zSI8kXJJ+oBmDXLyd3pcWmWGJk3667RmE04rg== X-Google-Smtp-Source: AGHT+IEHlTc/UB8jlcGXvIiIskkaONEiOaMnqku9LZPP52KzQyb9Nbav6vOvfXHLZ8bKgrSnmpR9 X-Received: by 2002:a17:907:7005:b0:a5a:2aed:ca2b with SMTP id a640c23a62f3a-a62641bbbb8mr904220366b.28.1716919529241; Tue, 28 May 2024 11:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716919529; cv=pass; d=google.com; s=arc-20160816; b=qJ8IWnHTNDN+7Mt77TE6dzlK0C7upQbNz64okXcnLQjD40L724W9x3y2B6yKWYdLfo GBxQJMrc3NFgN13V+UkskqNWuGRJVwTlX8oHHcWRGLBSSoaMXPhYwl8fI+0l52QunD6b B4V7rlNPB2TYhNTwPESQDv1yvsN1tNgYGjGaYLwKLRdXyTYViMxzOnivNntYc45bkMBe JYGQFaX8nuAsLpkmo+lK1JSvNxiuLjuVKlrORMZsSSrAtXMH7cAtpahSDB3TPVj/lFUq O7SbSn83jrxBkbSY2iH2mkFphrv/6lNEvCDXV+v8hRrGC111t6DGRyzNdtMvZx7emtIy t1nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:cc:subject:to:reply-to:sender:from:dkim-signature :dkim-signature:date; bh=E0bbcDFGhMgIUhv2fY6dmxwOX2Cc5oryhf23zUQpKMk=; fh=sRuoxverM9+fK9z5tkT0IKJpR0o28A+KF9ywarzvQRc=; b=xArV7lbfkGT0EjPzJrGUKrWAZB+EjbtBtC3SItzFJqCCdX0+3Ky35surCB+RneXO6C yZ065aeqj5vP5z8Keh4IgBvi3LUChxaIk0oaoKIGJ/BkOkeAx9+NFJaX2VdDtxumEJj9 FOc3tvkcunBcEsqodVBetcgb68gwHVsCQICv2F/9gWX/tSx7GZg/uRV+rL/oX2xCEM2Z 7erKU3A2tUkI4+Kd6QZ+Fh+orHIxKlxbCbyQmU+tjA7IuKwrzJZDmdgwtYEXuO3XXvcW vEqBRGoGLfhn4AAOTuhAyfmuiw5ccR1oZ7wdzjvFJ29yMicRFfKxQIphzUjPN12UXF6J Rh/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=beSIONyO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a628dce10ccsi458478866b.937.2024.05.28.11.05.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 11:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=beSIONyO; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-192841-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 F00581F25079 for ; Tue, 28 May 2024 18:05:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D2EA4E1DD; Tue, 28 May 2024 18:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="beSIONyO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GHe4JmNt" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 468E645C14; Tue, 28 May 2024 18:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716919510; cv=none; b=mIhPKRQ/v2gwxtvIhJ8hB+scqYTRROpdQvcTiwSAnRDpmDE7/U/wy8YG1CGON+DD6GfULuhcfNlOGeir+JufN3ibBDUpfBe2Iq7iHERYa8iH0pwjSzr+mPj+lSkNBa12TbBauu8XKfr7YsZsfKYciY5TdQstW2v+hH8ImpGJ7cY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716919510; c=relaxed/simple; bh=KqbT6BGd1Rvq6b8FYm1Yqg1MVJYjdI+XNxUZORm5anM=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=jZ26oTIW1uTvsJnBiKC12LiOwrQ8GYPoj5IDoLqNgFC5vul4KrWCb6j1dje8Clu7vOBjfFwocqeOMXVL4C9fD5ccYzdxzBMv4AYk7FnioqTpeow3f7cZXTPJPDurR0HSlrbsTs9jE0KnJiCwUHBcqiH8tJ1GGLyIHEEzZApedpw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=beSIONyO; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GHe4JmNt; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 28 May 2024 18:05:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716919507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E0bbcDFGhMgIUhv2fY6dmxwOX2Cc5oryhf23zUQpKMk=; b=beSIONyOuztQFLifQdgl/ZwjEOvDSxaSUK+lFWoJCifAOiAZQD40Y1KZAUTtxlmQJYsNYF t9n9NBHpnz7fAT2REDuMlXMDj/Nt0QmC7k2czSdlqA+J827DtsQZ77ggDBid0Ug3GbADqB btOqozGfZGA/wF/txotFRbr67jBpGuNfl3e0i/TF81fFVqt+fDWBDPyEDkMXcGNyipsqoO RsHdfduMEHCIExQhSZh0KrAWJRrpTb4N2qha+Cizd0dG9vj2qWe/+Qk4rM+sHKFS5n4lQJ pTDg0pb2jQZDB61fm6BniHNjyPz4fOZg/ft2y8fZZQIksaFomBDFYgGdHwyHaA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716919507; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E0bbcDFGhMgIUhv2fY6dmxwOX2Cc5oryhf23zUQpKMk=; b=GHe4JmNtnu3yyTJZWZxwPTXG9CXaM962R1oqnkUT7/PPec3Y7AgoNplcKTV9e1zlDHqbQ0 muTzBzBxCAbtBXBw== From: "tip-bot2 for Tony Luck" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/virt/tdx: Switch to new Intel CPU model defines Cc: Tony Luck , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171691950749.10875.7832968008761486489.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 189e8d4b98495a9145301a3594f4fb56118211e8 Gitweb: https://git.kernel.org/tip/189e8d4b98495a9145301a3594f4fb56118211e8 Author: Tony Luck AuthorDate: Mon, 20 May 2024 15:46:01 -07:00 Committer: Dave Hansen CommitterDate: Tue, 28 May 2024 10:59:02 -07:00 x86/virt/tdx: Switch to new Intel CPU model defines New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck Signed-off-by: Dave Hansen Link: https://lore.kernel.org/all/20240520224620.9480-31-tony.luck%40intel.com --- arch/x86/virt/vmx/tdx/tdx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c index 49a1c68..4e2b2e2 100644 --- a/arch/x86/virt/vmx/tdx/tdx.c +++ b/arch/x86/virt/vmx/tdx/tdx.c @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include "tdx.h" @@ -1426,9 +1426,9 @@ static void __init check_tdx_erratum(void) * private memory poisons that memory, and a subsequent read of * that memory triggers #MC. */ - switch (boot_cpu_data.x86_model) { - case INTEL_FAM6_SAPPHIRERAPIDS_X: - case INTEL_FAM6_EMERALDRAPIDS_X: + switch (boot_cpu_data.x86_vfm) { + case INTEL_SAPPHIRERAPIDS_X: + case INTEL_EMERALDRAPIDS_X: setup_force_cpu_bug(X86_BUG_TDX_PW_MCE); } }