diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-09-21 19:35:46 -0300 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-09-28 14:10:48 -0600 |
| commit | 53e5fe5f28df72dd5917b74665465d42b2f0e90e (patch) | |
| tree | 43d2c75d078db3c9932847424eed2873877a439a /tools/perf/scripts/python | |
| parent | be0237a5f35df3518953075c375cc07fe09aef38 (diff) | |
| download | linux-next-53e5fe5f28df72dd5917b74665465d42b2f0e90e.tar.gz linux-next-53e5fe5f28df72dd5917b74665465d42b2f0e90e.zip | |
vfio: selftests: Allow drivers to specify required region size
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@nvidia.com>
Acked-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/6-v7-c6d30e8ce1e4+3dfa6-mlx5st_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
