xen: unify foreign GFN map/unmap for auto-xlated physmap guests
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 11 Mar 2015 14:49:56 +0000 (14:49 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 16 Mar 2015 14:49:15 +0000 (14:49 +0000)
commit628c28eefd6f2cef03b212081b466ae43fd093a3
treeedcde5040badd2068efe925f8253961e0ca71c48
parentb3b06c7eb7820cea5c15f9faa4964044284c5399
xen: unify foreign GFN map/unmap for auto-xlated physmap guests

Auto-translated physmap guests (arm, arm64 and x86 PVHVM/PVH) map and
unmap foreign GFNs using the same method (updating the physmap).
Unify the two arm and x86 implementations into one commont one.

Note that on arm and arm64, the correct error code will be returned
(instead of always -EFAULT) and map/unmap failure warnings are no
longer printed.  These changes are required if the foreign domain is
paging (-ENOENT failures are expected and must be propagated up to the
caller).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
arch/arm/xen/enlighten.c
arch/x86/xen/mmu.c
drivers/xen/Kconfig
drivers/xen/Makefile
drivers/xen/xlate_mmu.c [new file with mode: 0644]
include/xen/xen-ops.h