Re: [PATCHv13 5/9] efi: Add unaccepted memory support

From: Kirill A. Shutemov
Date: Tue Jun 06 2023 - 08:19:34 EST


On Mon, Jun 05, 2023 at 09:12:25PM +0200, Borislav Petkov wrote:
> So how about you explain that explicitly somewhere, perhaps in a comment
> above accept_memory(), that the unaccepted range is not the whole memory
> but only, well, what is unaccepted and the rest is implicitly accepted?

Does it look okay to you?

/*
* accept_memory() -- Consult bitmap and accept the memory if needed.
*
* Only memory that explicitly marked as unaccepted in the bitmap requires
* an action.
*
* No need to accept:
* - anything if the system has no unaccepted table;
* - memory that is below phys_base;
* - memory that is above the memory that addressable by the bitmap;
*/

--
Kiryl Shutsemau / Kirill A. Shutemov