]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: map foreign pages for shared rings by updating the PTEs directly
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 29 Sep 2011 15:53:32 +0000 (16:53 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Dec 2011 15:54:14 +0000 (10:54 -0500)
commit2747e3d0a5687430dfd6a2628dbba1327b567096
tree2f00ac64c8872ec433f030c48fdd9f57f190ac28
parent3107eeb1afd3b7271d30e4a1c5fcad042132c303
xen: map foreign pages for shared rings by updating the PTEs directly

When mapping a foreign page with xenbus_map_ring_valloc() with the
GNTTABOP_map_grant_ref hypercall, set the GNTMAP_contains_pte flag and
pass a pointer to the PTE (in init_mm).

After the page is mapped, the usual fault mechanism can be used to
update additional MMs.  This allows the vmalloc_sync_all() to be
removed from alloc_vm_area().

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
[v1: Squashed fix by Michal for no-mmu case]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/x86/xen/grant-table.c
drivers/xen/xenbus/xenbus_client.c
include/linux/vmalloc.h
mm/nommu.c
mm/vmalloc.c