diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-02-28 11:09:39 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-02-28 11:09:39 +0100 |
commit | 8db1e759556d3a3832f92e91d6c848c5ce2d3fa1 (patch) | |
tree | 4dfe7fd0f989b23a377df70973f569491f618551 /xen/arch/x86/usercopy.c | |
parent | 703ac3abcfc5f649c038070867ee12c67f730548 (diff) | |
download | xen-8db1e759556d3a3832f92e91d6c848c5ce2d3fa1.tar.gz xen-8db1e759556d3a3832f92e91d6c848c5ce2d3fa1.tar.bz2 xen-8db1e759556d3a3832f92e91d6c848c5ce2d3fa1.zip |
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>
Diffstat (limited to 'xen/arch/x86/usercopy.c')
-rw-r--r-- | xen/arch/x86/usercopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/usercopy.c b/xen/arch/x86/usercopy.c index 8bd9469c9e..b79202bc98 100644 --- a/xen/arch/x86/usercopy.c +++ b/xen/arch/x86/usercopy.c @@ -6,8 +6,8 @@ * Copyright 2002 Andi Kleen <ak@suse.de> */ -#include <xen/config.h> #include <xen/lib.h> +#include <xen/sched.h> #include <asm/uaccess.h> unsigned long __copy_to_user_ll(void __user *to, const void *from, unsigned n) |