[SRU][J:linux-bluefield][PATCH v2 4/7] UBUNTU: SAUCE: vfio/pci: Allow MMIO regions to be exported through dma-buf

William Tu witu at nvidia.com
Fri Sep 6 13:55:33 UTC 2024


Hi Jason,
Thanks, I remove this line in patch 7/7.
Maybe I should squash 7/7 and 4/7.
William

From: Jason Gunthorpe <jgg at nvidia.com>
Date: Friday, September 6, 2024 at 6:53 AM
To: William Tu <witu at nvidia.com>
Cc: kernel-team at lists.ubuntu.com <kernel-team at lists.ubuntu.com>, Vladimir Sokolovsky <vlad at nvidia.com>, Bodong Wang <bodong at nvidia.com>, Sergey Gorenko <sergeygo at nvidia.com>, Ziv Waksman <zwaksman at nvidia.com>
Subject: Re: [SRU][J:linux-bluefield][PATCH v2 4/7] UBUNTU: SAUCE: vfio/pci: Allow MMIO regions to be exported through dma-buf
On Fri, Sep 06, 2024 at 12:40:35AM +0000, William Tu wrote:

> +/**
> + * Upon VFIO_DEVICE_FEATURE_GET create a dma_buf fd for the
> + * region selected.
> + *
> + * open_flags are the typical flags passed to open(2), eg O_RDWR, O_CLOEXEC,
> + * etc. offset/length specify a slice of the region to create the dmabuf from.
> + * If both are 0 then the whole region is used.
> + *
> + * Return: The fd number on success, -1 and errno is set on failure.
> + */
> +struct vfio_device_feature_dma_buf {
> +     __u32 region_index;
> +     __u32 open_flags;
> +     __u32 offset;
> +     __u64 length;
> +};
> +#define VFIO_DEVICE_FEATURE_DMA_BUF 3 // FIXME numbers wrong

This still can't be like this

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20240906/eab27075/attachment.html>


More information about the kernel-team mailing list