xen/grant-table: pre-populate kernel unmap ops for xen_gnttab_unmap_refs()
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 5 Jan 2015 14:13:41 +0000 (14:13 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Jan 2015 14:03:10 +0000 (14:03 +0000)
commit853d0289340026b30f93fd0e768340221d4e605c
tree17d52ad1d7ae43007d8b664bbdba2a50db7dbb81
parentd8ac3dd41aea245f65465449efc35dd3ac71e91d
xen/grant-table: pre-populate kernel unmap ops for xen_gnttab_unmap_refs()

When unmapping grants, instead of converting the kernel map ops to
unmap ops on the fly, pre-populate the set of unmap ops.

This allows the grant unmap for the kernel mappings to be trivially
batched in the future.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
arch/arm/include/asm/xen/page.h
arch/arm/xen/p2m.c
arch/x86/include/asm/xen/page.h
arch/x86/xen/p2m.c
drivers/xen/gntdev.c
drivers/xen/grant-table.c
include/xen/grant_table.h