]> 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)
commitbb4fff6ae5c0ee6afe5072f24d5cfbcae05d4554
treeedcde5040badd2068efe925f8253961e0ca71c48
parentefdcb69545eda7f84cef14cdce87f73ad735fc1a
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