Re: [PATCHv6 02/15] mm: Add support for unaccepted memory

From: Gupta, Pankaj
Date: Thu May 19 2022 - 10:33:39 EST



On Thu, May 19, 2022 at 12:43:15PM +0200, Gupta, Pankaj wrote:
If both Intel TDX and AMD SEV-SNP requires the memory to be accepted before
it can be used by the guest. In what other use cases (apart from memory
hotplug), the lazy memory acceptance will be useful?

It is nothing to do with hotplug.

Any memory has to be accepted before it can be used inside the TDX or
SEV-SNP guest. It can happen upfront, before kernel gets control (like by
firmware) or by kernel. The idea is to accept small portion of the memory
upfront and leave the rest to the kernel. The reason why delaying
acceptance make sense is boot time. We want the guest to start doing
useful stuff as fast as possible.

o.k. That answers my question. Thank you!

Best regards,
Pankaj