]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/mm: return more precise error from xen_remap_domain_range()
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 30 Aug 2012 12:58:11 +0000 (13:58 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Sep 2012 15:01:00 +0000 (11:01 -0400)
commit4006f26c65d8cc149e4786d3c9b7ce8bfaf998f2
tree1ffaffdb79dcdabf88aed101d0c07f615f08159c
parent2ce2fbea4f0511dc1f18ff2d5caad4e549012a7e
xen/mm: return more precise error from xen_remap_domain_range()

Callers of xen_remap_domain_range() need to know if the remap failed
because frame is currently paged out.  So they can retry the remap
later on.  Return -ENOENT in this case.

This assumes that the error codes returned by Xen are a subset of
those used by the kernel.  It is unclear if this is defined as part of
the hypercall ABI.

Acked-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 69870a847856a1ba81f655a8633fce5f5b614730)
arch/x86/xen/mmu.c