Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@alien8.de>
Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260203222405.4065706-4-kim.phillips@amd.com

authored by

Kim Phillips and committed by
Borislav Petkov (AMD)
531397a8 cca14942

+3 -3
+3 -3
arch/x86/boot/compressed/sev.c
··· 198 198 #endif 199 199 200 200 /* 201 - * SNP_FEATURES_PRESENT is the mask of SNP features that are implemented 201 + * SNP_FEATURES_IMPL is the mask of SNP features that are implemented 202 202 * by the guest kernel. As and when a new feature is implemented in the 203 203 * guest kernel, a corresponding bit should be added to the mask. 204 204 */ 205 - #define SNP_FEATURES_PRESENT (MSR_AMD64_SNP_DEBUG_SWAP | \ 205 + #define SNP_FEATURES_IMPL (MSR_AMD64_SNP_DEBUG_SWAP | \ 206 206 MSR_AMD64_SNP_SECURE_TSC | \ 207 207 SNP_FEATURE_SECURE_AVIC) 208 208 ··· 211 211 if (!(status & MSR_AMD64_SEV_SNP_ENABLED)) 212 212 return 0; 213 213 214 - return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_PRESENT; 214 + return status & SNP_FEATURES_IMPL_REQ & ~SNP_FEATURES_IMPL; 215 215 } 216 216 217 217 void snp_check_features(void)