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 <[email protected]>
Reviewed-by: David Matlack <[email protected]>
