Re: [PATCH V4 1/1] KVM: TDX: Add sub-ioctl KVM_TDX_TERMINATE_VM
From: Edgecombe, Rick P
Date: Wed Jun 18 2025 - 18:07:27 EST
On Tue, 2025-06-17 at 23:00 -0700, Vishal Annapurve wrote:
> gmem link support[1] allows associating existing guest_memfds with new
> VM instances.
>
> Breakdown of the userspace VMM flow:
> 1) Create a new VM instance before closing guest_memfd files.
> 2) Link existing guest_memfd files with the new VM instance. -> This
> creates new set of files backed by the same inode but associated with
> the new VM instance.
> 3) Close the older guest memfd handles -> results in older VM instance cleanup.
>
> [1] https://lore.kernel.org/lkml/cover.1747368092.git.afranji@xxxxxxxxxx/#t
Is it intended to even work for TDX private memory? It seems to be SEV focused.
I think we really need to come to an agreement on how much to design code around
future ideas vs a more iterative approach. I had thought we had...