Files
qemu-reims-vgpu/docs/interop
Naman Gulati 3c42305102 vfio-user: add multi-fd region mmap capability
Extend the vfio-user protocol specification to allow servers to pass
multiple file descriptors for different sparse memory areas within a
single device region with capability
VFIO_REGION_INFO_CAP_SPARSE_MMAP_FDS (0x8001), negotiated via the
"sparse_mmap_fds" capability in VFIO_USER_VERSION.

VFIO_REGION_INFO_CAP_SPARSE_MMAP_FDS defines an array of sparse mmap
areas where each area contains:
- offset: Start of the area within the device region (BAR).
- fd_offset: Start of the mapping within the backing file descriptor.
- size: Size of the mappable area.
- fd_index: Zero-based index into the array of file descriptors
  received in the SCM_RIGHTS ancillary data of the
  VFIO_USER_DEVICE_GET_REGION_INFO reply message.

Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Signed-off-by: Naman Gulati <namangulati@google.com>
Link: https://lore.kernel.org/qemu-devel/20261023223902.1275539-2-namangulati@google.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
2026-10-31 06:48:11 +01:00
..
2026-09-02 15:02:58 -04:00
2026-09-02 15:02:58 -04:00
2026-09-02 15:02:58 -04:00
2021-12-21 10:50:21 +04:00
2024-08-09 17:37:54 +01:00
2025-01-17 10:45:49 +00:00