aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mm.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-02-28 11:09:39 +0100
committerJan Beulich <jbeulich@suse.com>2013-02-28 11:09:39 +0100
commit8db1e759556d3a3832f92e91d6c848c5ce2d3fa1 (patch)
tree4dfe7fd0f989b23a377df70973f569491f618551 /xen/include/asm-x86/mm.h
parent703ac3abcfc5f649c038070867ee12c67f730548 (diff)
downloadxen-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/include/asm-x86/mm.h')
-rw-r--r--xen/include/asm-x86/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
index 3c65a7c1aa..fd9d654433 100644
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -579,6 +579,8 @@ int map_ldt_shadow_page(unsigned int);
int create_perdomain_mapping(struct domain *, unsigned long va,
unsigned int nr, l1_pgentry_t **,
struct page_info **);
+void destroy_perdomain_mapping(struct domain *, unsigned long va,
+ unsigned int nr);
void free_perdomain_mappings(struct domain *);
extern int memory_add(unsigned long spfn, unsigned long epfn, unsigned int pxm);