Hi Aneesh, On Mon, 16 Nov 2026 at 09:12, Aneesh Kumar K.V (Arm) <[email protected]> wrote: [...] > Keep allocations on platforms without memory encryption on the ordinary page > allocator path so the original GFP constraints, including __GFP_ZERO, remain > intact. Remove post-transition memset() calls that are now redundant and > explicitly clear allocations on paths where no transition occurs. > > This intentionally makes every private-to-shared transition destructive; > callers can no longer use set_memory_decrypted() to preserve existing > contents.
pKVM shares memory in place, and a guest has to be able to share memory it has already set up, as Vincent pointed out [1]. That was one of the primary reasons for in-place conversion in guest_memfd. Cheers, /fuad [1] https://lore.kernel.org/all/[email protected]/
