aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mm.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-12-11 08:58:06 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-12-11 08:58:06 +0000
commite898e6e23eb3e3c4969d965a05be149ecbc60534 (patch)
treeb660cf05fb4b826f17ca7f55a9203ea1e071095c /xen/include/asm-x86/mm.h
parent279dee95826094216e2a95db01028b048527cbf8 (diff)
downloadxen-e898e6e23eb3e3c4969d965a05be149ecbc60534.tar.gz
xen-e898e6e23eb3e3c4969d965a05be149ecbc60534.tar.bz2
xen-e898e6e23eb3e3c4969d965a05be149ecbc60534.zip
memory hotadd 7/7: hypercall support
The basic work flow to handle the memory hotadd is: Update node information Map new pages to xen 1:1 mapping Setup frametable for new memory range Setup m2p table for new memory range Put the new pages to domheap Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Diffstat (limited to 'xen/include/asm-x86/mm.h')
-rw-r--r--xen/include/asm-x86/mm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
index b259c486e5..4b9cdc8287 100644
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -530,6 +530,12 @@ int donate_page(
int map_ldt_shadow_page(unsigned int);
+#ifdef CONFIG_X86_64
+extern int memory_add(unsigned long spfn, unsigned long epfn, unsigned int pxm);
+#else
+int memory_add(uint64_t spfn, uint64_t epfn, uint32_t pxm) {return -ENOSYS};
+#endif
+
#ifdef CONFIG_COMPAT
void domain_set_alloc_bitsize(struct domain *d);
unsigned int domain_clamp_alloc_bitsize(struct domain *d, unsigned int bits);