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

Re: [Xen-devel] [PATCH v4 3/3] xen/arm: introduce XENFEAT_grant_map_identity



>>> On 28.07.14 at 12:16, <stefano.stabellini@xxxxxxxxxxxxx> wrote:
> @@ -941,9 +951,18 @@ __gnttab_unmap_common(
>          int err = 0;
>          mapcount(lgt, rd, op->frame, &wrc, &rdc);
>          if ( (wrc + rdc) == 0 )
> -            err = iommu_unmap_page(ld, op->frame);
> -        else if ( wrc == 0 )
> -            err = iommu_map_page(ld, op->frame, op->frame, IOMMUF_readable);
> +        {
> +            if ( is_domain_direct_mapped(ld) )
> +                err = arch_grant_unmap_page_identity(ld, op->frame);
> +            else
> +                err = iommu_unmap_page(ld, op->frame);
> +        } else if ( wrc == 0 )

Coding style. With that taken care of:
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.