On Wed, Oct 14, 2026 at 09:10:38PM +0000, Naman Gulati wrote:

> 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 <[email protected]>
> Signed-off-by: Naman Gulati <[email protected]>

Reviewed-by: John Levon <[email protected]>

regards
john

Reply via email to