[PATCH 1/9] block: don't merge different kinds of P2P transfers in a single bio

Keith Busch kbusch at kernel.org
Wed Jun 11 13:00:04 PDT 2025


On Wed, Jun 11, 2025 at 01:41:54PM -0600, Logan Gunthorpe wrote:
> On 2025-06-11 10:41, Keith Busch wrote:
> > Is there some other mechansim that ensures a host memory mapped IOVA
> > doesn't collide with a PCI bus address then?
> 
> Yes, in the absence of a switch with ACS protection this can be a problem.
> 
> I haven't looked at this in a long time, but the iommu drivers reserve
> regions where the PCI addresses are valid so no iova will be allocated
> with a similar bus address. After a quick search, I believe today, this
> is handled by iova_reserve_pci_windows().

Excellent, I think that was the piece I was missing. Thanks!



More information about the Linux-nvme mailing list