> From: Roger Pau Monne [mailto:roger....@citrix.com]
> Sent: Friday, January 20, 2017 1:30 AM
> 
> There's nothing wrong with allowing the domain to perform DMA transfers to
> MMIO areas that it already can access from the CPU, and this allows us to
> remove the hack in set_identity_p2m_entry for PVH Dom0.
> 
> Signed-off-by: Roger Pau Monné <roger....@citrix.com>
[...]
> @@ -840,6 +840,10 @@ static inline unsigned int p2m_get_iommu_flags(p2m_type_t
> p2mt)
>      case p2m_grant_map_ro:
>          flags = IOMMUF_readable;
>          break;
> +    case p2m_mmio_direct:
> +        flags = IOMMUF_readable;
> +        if ( rangeset_contains_singleton(mmio_ro_ranges, mfn_x(mfn)) )
> +            flags |= IOMMUF_writable;

I suppose you meant !rangeset_contains_singleton...

Thanks
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to