> -----Original Message-----
> From: Zhangfei Gao <[email protected]>
> Sent: Monday, December 2, 2024 6:05 AM
> To: Jason Gunthorpe <[email protected]>
> Cc: Nicolin Chen <[email protected]>; Shameerali Kolothum Thodi
> <[email protected]>; Eric Auger
> <[email protected]>; Mostafa Saleh <[email protected]>; qemu-
> [email protected]; [email protected]; Peter Maydell
> <[email protected]>; Jean-Philippe Brucker <jean-
> [email protected]>; Moritz Fischer <[email protected]>; Michael Shavit
> <[email protected]>; Andrea Bolognani <[email protected]>;
> Michael S. Tsirkin <[email protected]>; Peter Xu <[email protected]>;
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]
> Subject: Re: nested-smmuv3 topic for QEMU/libvirt, Nov 2024
> 
> Hi, Nico
> 
> On Fri, 1 Nov 2024 at 19:55, Jason Gunthorpe <[email protected]> wrote:
> >
> > On Thu, Oct 31, 2024 at 09:09:20PM -0700, Nicolin Chen wrote:
> >
> > > FWIW, Robin requested a different solution for MSI mapping [1], v.s.
> > > the RMR one that we have been using since Eric's work. I drafted a
> > > few VFIO/IOMMUFD patches for that,
> >
> > I also talked to MarcZ about this at LPC and he seems willing to
> > consider it. It took a bit to explain everything though. So I think we
> > should try in Nov/Dec
> 
> When boot qemu, reports this
> 
> qemu-system-aarch64: warning: IOMMU_IOAS_MAP failed: Bad address, PCI
> BAR?
> qemu-system-aarch64: vfio_container_dma_map(0xaaaadd30f110,
> 0x8000200000, 0x10000, 0xffffb8031000) = -14 (Bad address)
> qemu-system-aarch64: warning: IOMMU_IOAS_MAP failed: Bad address, PCI
> BAR?
> qemu-system-aarch64: vfio_container_dma_map(0xaaaadd2bc310,
> 0x8000200000, 0x10000, 0xffffb8031000) = -14 (Bad address)
> qemu-system-aarch64: warning: IOMMU_IOAS_MAP failed: Bad address, PCI
> BAR?
> qemu-system-aarch64: vfio_container_dma_map(0xaaaadcf90000,
> 0x8000200000, 0x10000, 0xffffb8031000) = -14 (Bad address)
> 
> Will this also be solved in the new MSI mapping patchset?

Nope. These are not related to MSIs. These mappings are required for 
P2P DMA between devices and is not supported by IOMMUFD at the moment.

See the discussion here,
https://lore.kernel.org/all/[email protected]/

Thanks,
Shameer

Reply via email to