Thread (15 messages) flat view 15 messages, 4 authors, 3d ago

Re: [PATCH v7 06/10] vfio: selftests: Allow drivers to specify required region size

From: Sean Christopherson <seanjc@google.com>
Date: 2026-09-23 22:42:53
Also in: kvm, kvmarm, linux-arm-kernel, linux-kselftest, linux-patches, linux-rdma

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@nvidia.com>
---
The KVM test still runs, and in David I trust:

Acked-by: Sean Christopherson <seanjc@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help