[PATCH v7 06/10] vfio: selftests: Allow drivers to specify required region size
Sean Christopherson
seanjc at google.com
Wed Sep 23 15:42:51 PDT 2026
On Mon, Sep 21, 2026, 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>
> ---
The KVM test still runs, and in David I trust:
Acked-by: Sean Christopherson <seanjc at google.com>
More information about the linux-arm-kernel
mailing list