x86: rework hypercall argument translation area setup
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Feb 2013 10:09:39 +0000 (11:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Feb 2013 10:09:39 +0000 (11:09 +0100)
commit8db1e759556d3a3832f92e91d6c848c5ce2d3fa1
tree4dfe7fd0f989b23a377df70973f569491f618551
parent703ac3abcfc5f649c038070867ee12c67f730548
x86: rework hypercall argument translation area setup

... using the new per-domain mapping management functions, adding
destroy_perdomain_mapping() to the previously introduced pair.

Rather than using an order-1 Xen heap allocation, use (currently 2)
individual domain heap pages to populate space in the per-domain
mapping area.

Also fix a benign off-by-one mistake in is_compat_arg_xlat_range().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/mm.c
xen/arch/x86/usercopy.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/config.h
xen/include/asm-x86/domain.h
xen/include/asm-x86/mm.h
xen/include/asm-x86/x86_64/uaccess.h