On Wed, Jul 22, 2026 at 11:13:18PM +0000, Lisa Wang wrote:
> Set the memory region as shared if guest_memfd in-place conversion is
> support, so that the KVM selftest framework functions can populate
^^^^^^^ nit: supported
> mmap()-ed guest_memfd memory the same way memory from other memory
> providers are populated.
>
[ ... ]
>
> @@ -495,14 +497,20 @@ struct kvm_vm *__vm_create(struct vm_shape shape, u32
> nr_runnable_vcpus,
> vm = ____vm_create(shape);
>
> /*
> - * Force GUEST_MEMFD for the primary memory region if necessary, e.g.
> - * for CoCo VMs that require GUEST_MEMFD backed private memory.
> + * Force GUEST_MEMFD for the primary memory region if necessary, and
> + * initialize it as shared if in-place conversion is support, so the
^^^^^^^
same nit
> + * selftest framework can populate it exactly like other memory
> + * providers.
> */