[tip: x86/sev] x86/sev: Rename SNP_FEATURES_PRESENT to SNP_FEATURES_IMPL

From: tip-bot2 for Kim Phillips

Date: Mon Mar 16 2026 - 16:32:28 EST


The following commit has been merged into the x86/sev branch of tip:

Commit-ID: 531397a80360661b61fb69ab41c7359c1f7d35c1
Gitweb: https://git.kernel.org/tip/531397a80360661b61fb69ab41c7359c1f7d35c1
Author: Kim Phillips <kim.phillips@xxxxxxx>
AuthorDate: Tue, 03 Feb 2026 16:24:05 -06:00
Committer: Borislav Petkov (AMD) <bp@xxxxxxxxx>
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) <bp@xxxxxxxxx>
Suggested-by: Tom Lendacky <thomas.lendacky@xxxxxxx>
Signed-off-by: Kim Phillips <kim.phillips@xxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Link: https://patch.msgid.link/20260203222405.4065706-4-kim.phillips@xxxxxxx
---
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

/*
- * 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)

@@ -211,7 +211,7 @@ u64 snp_get_unsupported_features(u64 status)
if (!(status & MSR_AMD64_SEV_SNP_ENABLED))
return 0;

- return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_PRESENT;
+ return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_IMPL;
}

void snp_check_features(void)