On 27.05.25 20:02, Fuad Tabba wrote:
This patch enables support for shared memory in guest_memfd, including mapping that memory at the host userspace. This support is gated by the configuration option KVM_GMEM_SHARED_MEM, and toggled by the guest_memfd flag GUEST_MEMFD_FLAG_SUPPORT_SHARED, which can be set when creating a guest_memfd instance. Co-developed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx> Signed-off-by: Ackerley Tng <ackerleytng@xxxxxxxxxx> Signed-off-by: Fuad Tabba <tabba@xxxxxxxxxx> --- arch/x86/include/asm/kvm_host.h | 10 ++++ arch/x86/kvm/x86.c | 3 +-
Nit: I would split off the x86 bits. Meaning, this patch would only introduce the infrastructure and a x86 KVM patch would enable it for selected x86 VMs.
-- Cheers, David / dhildenb