From: David Vrabel Date: Thu, 29 Sep 2011 15:53:32 +0000 (+0100) Subject: xen: map foreign pages for shared rings by updating the PTEs directly X-Git-Tag: v3.2-rc3~38^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd12909cb576d37311fe35868780e82d5007d0c8;p=pandora-kernel.git 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 Acked-by: Andrew Morton [v1: Squashed fix by Michal for no-mmu case] Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Michal Simek --- Reading git-diff-tree failed