[PATCH 19/19] vfio/pci: Implement huge_fault support

Jason Gunthorpe jgg at nvidia.com
Wed Aug 14 09:24:15 PDT 2024


On Wed, Aug 14, 2024 at 10:08:49AM -0600, Alex Williamson wrote:

> There was some alignment and size checking chopped from the previous
> reply that triggered a fallback, but in general PCI BARs are a power of
> two and naturally aligned, so there should always be an order aligned
> pfn.

Sure, though I was mostlyo thinking about how to use this API in other
drivers.

Maybe the device has 2M page alignment only but the VMA was aligned to
1G? It will be called with an order higher than it can support but
that is not an error that should be failed.

Jason



More information about the linux-arm-kernel mailing list