qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] VFIO: Not require to make VFIO_IOMMU_MAP_DMA for MMAPED P


From: Scott Wood
Subject: Re: [Qemu-ppc] VFIO: Not require to make VFIO_IOMMU_MAP_DMA for MMAPED PCI bars
Date: Mon, 18 Feb 2013 22:08:50 -0600

On 02/18/2013 10:05:20 PM, Bhushan Bharat-R65777 wrote:


> -----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 ?

What specifically does "type 2" mean again? If we're going to use it as the thing to key off of for all sorts of PAMU quirks, might as well just call it VFIO_IOMMU_FSL_PAMU.

-Scott



reply via email to

[Prev in Thread] Current Thread [Next in Thread]