Re: [PATCH v14 13/22] KVM: selftests: Support guest_memfd in-place conversion

Peter Fang <[email protected]>
Newsgroups org.kernel.vger.kvm,dev.linux.lists.linux-coco,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest
Message-ID <20260825215340.GC3694338@pedri>
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.
>  	 */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.