xen: introduce gnttab_map_refs and gnttab_unmap_refs
commit289b777eac19c811b474593b4d2fd14e46340c23
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 10 Dec 2010 14:54:44 +0000 (10 14:54 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 11 Jan 2011 19:32:00 +0000 (11 14:32 -0500)
tree5474d85065eb539d51df994fbdfab5cd2cc0e400
parent9b705f0e98c489b18ba22a6eab9d694b546c8552
xen: introduce gnttab_map_refs and gnttab_unmap_refs

gnttab_map_refs maps some grant refs and uses the new m2p override to
set a proper m2p mapping for the granted pages.

gnttab_unmap_refs unmaps the granted refs and removes th mappings from
the m2p override.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/grant-table.c
include/xen/grant_table.h