> -----Original Message-----
> From: Alex Williamson [mailto:address@hidden
> Sent: Thursday, February 14, 2013 11:57 PM
> To: Bhushan Bharat-R65777
> Cc: Yoder Stuart-B08248; Wood Scott-B07421; Graf Alexander-B36701;
qemu-
> address@hidden; address@hidden
> Subject: Re: VFIO: Not require to make VFIO_IOMMU_MAP_DMA for
MMAPED PCI bars
>
> On Thu, 2013-02-14 at 08:22 +0000, Bhushan Bharat-R65777 wrote:
> > +static bool vfio_listener_skipped_section(VFIOContainer
*container,
> > + MemoryRegionSection
> > +*section) {
> > + if (!memory_region_is_ram(section->mr))
> > + return 1;
>
> Need some kind of conditional here for platforms that support
peer-to-peer.
> Thanks,
What about adding a iommu_type will help here (VFIO_TYPE2_IOMMU),
which does not require BARs to be mapped in iommu ?