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

[Xen-devel] Re: RFC: Using grant table to give iomem permission

  • To: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
  • Date: Fri, 18 May 2007 15:05:55 +0100
  • Delivery-date: Fri, 18 May 2007 07:04:27 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AceZVaae5StpCQVIEdyDCwAX8io7RQ==
  • Thread-topic: RFC: Using grant table to give iomem permission

On 18/5/07 15:01, "Kieran Mansley" <kmansley@xxxxxxxxxxxxxx> wrote:

> When finished, the mapping domain can similarly unmap the grant, which
> removes its ability to ioremap() the page:
> struct gnttab_unmap_grant_ref op;
> gnttab_set_unmap_op(&op, 0, GNTMAP_iomem_map, handle);
> if (HYPERVISOR_grant_table_op(GNTTABOP_unmap_grant_ref, &op, 1))
> BUG();
> Some questions from me:
>  - does this approach seem sane?

There's no reason you shouldn't be able to use GNTMAP_host_map as usual, and
do refcounting in the active grant entry, also as usual.

 -- Keir

Xen-devel mailing list



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