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

From: Borislav Petkov
Date: Sun Mar 10 2024 - 17:26:00 EST


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
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...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette