xen/grant-table: add helpers for allocating pages
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 8 Jan 2015 18:06:01 +0000 (18:06 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:03:12 +0000 (14:03 +0000)
commitff4b156f166b3931894d2a8b5cdba6cdf4da0618
treedfb7d79d269b365b2a95efa390c0fe62a8de935e
parent0ae65f49af64d68f0daca37b83383115cae5e690
xen/grant-table: add helpers for allocating pages

Add gnttab_alloc_pages() and gnttab_free_pages() to allocate/free pages
suitable to for granted maps.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/block/xen-blkback/blkback.c
drivers/net/xen-netback/interface.c
drivers/xen/gntdev.c
drivers/xen/grant-table.c
drivers/xen/xen-scsiback.c
include/xen/grant_table.h