Re: [PATCH v2 3/3] x86/boot: Implement early memory acceptance for SEV-SNP

From: Kirill A. Shutemov
Date: Fri Apr 04 2025 - 04:43:29 EST


On Fri, Apr 04, 2025 at 10:29:25AM +0200, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@xxxxxxxxxx>
>
> Switch to a different API for accepting memory in SEV-SNP guests, one
> which is actually supported at the point during boot where the EFI stub
> may need to accept memory, but the SEV-SNP init code has not executed
> yet.

I probably miss the point, but why cannot decompressor use the same _early
version of accept too and avoid code duplication?

Maybe spell it out in the commit message for someone like me :P

--
Kiryl Shutsemau / Kirill A. Shutemov