]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64807124df8059a30d6a164f4ac1b954b4255291
treeedcde5040badd2068efe925f8253961e0ca71c48
parent4c1af08bf4d8dcb4ec759303e25103e5dd34b774
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