From nobody Tue Apr 7 02:37:15 2026 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 3A9403D7D7C; Mon, 16 Mar 2026 20:31:49 +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=1773693110; cv=none; b=uLll71fgi6A5p7uATWoshrBoFTStiTOvYJc9npxMl7lHaVT80EeGj12eMVfP+vd0IecDcXmrZSPon7G01CH8kl6GntjvUw23m3mEFZ/9d0o398N+dxgwNT4OPM32Nsj2qYV0pnkIvMOp41q0on08lazvoUu31m32TyNY1uugvdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773693110; c=relaxed/simple; bh=r5NLlX1MX/kkBtZXyLZ5fPIPWDqQo6dXsgBFTu5YChU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=kp7d/x36esoBTov0g6nGrXpbqOV/eD38V+VJrKgFE/SdWCVdAoGiW/MBNkyGvHBTt4i0sOWwBEL9ME4/XyUNfj/Le8fRqd5cQYZw9D8dw57a2gftLabU9Ngg8Q6JnOrUakRKCeWsuqejgh4yTb/r8EJHqEKqqiYahEhyiZbPJug= 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=KogvxL25; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1odW4c0Y; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KogvxL25"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1odW4c0Y" Date: Mon, 16 Mar 2026 20:31:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773693107; 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: in-reply-to:in-reply-to:references:references; bh=wMDA5Fygtp9faPvR+sMlYLs3gsWPB/2M2XXd1dKAEf4=; b=KogvxL2583DCHGdKsFQZjyO5qe+XAAUqhp3POdLGDEesKj4TVjtTRr5qUVEypfXNOdfopO g5p4bh4O3iZivGLW/q8Benn1LdiAisZJwznvwjnvnIpSGOS7P96OtMSaFICPs2Q0Ex9ZxR B8toTm9OXDYqifY3bFRiNdplkfIxEt9o0x8C+yimOTdjOUs7IqyXgzIr0wmto2YRPV6cNf ziWBM8FN8FG0boYXFaaVtLHyfGrkp6xD73AFLyAmoW9NfCcDJpKr2TQwrPK6/pWQzeihjl BIuD/MhWm7ZVlcqbyFBikNfNz3J4HS/rcyJUSU5uwUAPmT76uKldHawm2YY1sw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773693107; 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: in-reply-to:in-reply-to:references:references; bh=wMDA5Fygtp9faPvR+sMlYLs3gsWPB/2M2XXd1dKAEf4=; b=1odW4c0Yllzc472RtFMkbQ9sZzk7kUK75m6oYV84qUCuausjgQv2jWdrPmhn2FaXuUFZyE Dw8zQeVF2TP88EDw== From: "tip-bot2 for Kim Phillips" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sev] x86/sev: Rename SNP_FEATURES_PRESENT to SNP_FEATURES_IMPL Cc: "Borislav Petkov (AMD)" , Tom Lendacky , Kim Phillips , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260203222405.4065706-4-kim.phillips@amd.com> References: <20260203222405.4065706-4-kim.phillips@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177369310580.1647592.11453610656474978828.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: quoted-printable The following commit has been merged into the x86/sev branch of tip: Commit-ID: 531397a80360661b61fb69ab41c7359c1f7d35c1 Gitweb: https://git.kernel.org/tip/531397a80360661b61fb69ab41c7359c1= f7d35c1 Author: Kim Phillips AuthorDate: Tue, 03 Feb 2026 16:24:05 -06:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 16 Mar 2026 21:08:50 +01:00 x86/sev: Rename SNP_FEATURES_PRESENT to SNP_FEATURES_IMPL Rename SNP_FEATURES_PRESENT to SNP_FEATURES_IMPL to denote its counterpart relationship with SNP_FEATURES_IMPL_REQ. [ bp: Drop stable@, massage commit message. ] Suggested-by: Borislav Petkov (AMD) Suggested-by: Tom Lendacky Signed-off-by: Kim Phillips Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260203222405.4065706-4-kim.phillips@amd.com --- arch/x86/boot/compressed/sev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/boot/compressed/sev.c b/arch/x86/boot/compressed/sev.c index e468476..c6512f2 100644 --- a/arch/x86/boot/compressed/sev.c +++ b/arch/x86/boot/compressed/sev.c @@ -198,11 +198,11 @@ bool sev_es_check_ghcb_fault(unsigned long address) #endif =20 /* - * SNP_FEATURES_PRESENT is the mask of SNP features that are implemented + * SNP_FEATURES_IMPL is the mask of SNP features that are implemented * by the guest kernel. As and when a new feature is implemented in the * guest kernel, a corresponding bit should be added to the mask. */ -#define SNP_FEATURES_PRESENT (MSR_AMD64_SNP_DEBUG_SWAP | \ +#define SNP_FEATURES_IMPL (MSR_AMD64_SNP_DEBUG_SWAP | \ MSR_AMD64_SNP_SECURE_TSC | \ SNP_FEATURE_SECURE_AVIC) =20 @@ -211,7 +211,7 @@ u64 snp_get_unsupported_features(u64 status) if (!(status & MSR_AMD64_SEV_SNP_ENABLED)) return 0; =20 - return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_PRESENT; + return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_IMPL; } =20 void snp_check_features(void)