[PATCH v7 06/10] vfio: selftests: Allow drivers to specify required region size
David Matlack
dmatlack at google.com
Wed Sep 23 11:26:06 PDT 2026
On 2026-09-21 07:35 PM, Jason Gunthorpe wrote:
> Add a region_size field to struct vfio_pci_driver_ops so drivers can
> declare how much DMA-mapped region they need. The mlx5 driver will need
> ~18MB for firmware pages. Existing drivers pass in the sizeof their state
> struct. Since drivers all use only their declared state we can use the
> value directly and remove the SZ_2M hard coding.
>
> Assisted-by: Claude:claude-opus-4.6
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Reviewed-by: David Matlack <dmatlack at google.com>
More information about the linux-arm-kernel
mailing list