Re: [PATCH v2 01/14] x86/sev: Rename snp_init() in the boot/compressed/sev.c file

From: Tom Lendacky
Date: Mon Mar 11 2024 - 12:18:24 EST




On 3/10/24 16:25, Borislav Petkov wrote:
On Fri, Mar 08, 2024 at 12:35:16PM -0600, Tom Lendacky wrote:
@@ -478,7 +557,7 @@ void sev_enable(struct boot_params *bp)
* Setup/preliminary detection of SNP. This will be sanity-checked
* against CPUID/MSR values later.
*/
- snp = snp_init(bp);
+ snp = snp_setup(bp);

So if you call the compressed/sev.c version early_snp_init() or
boot_snp_init() or something similar, you know immediately when it is

Yep, makes sense. Will change it.

Thanks,
Tom

called vs having to grep the tree to figure out which is which - was
snp_setup() early or was it in the kernel proper. And so on...