diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:58:06 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-11 08:58:06 +0000 |
commit | e898e6e23eb3e3c4969d965a05be149ecbc60534 (patch) | |
tree | b660cf05fb4b826f17ca7f55a9203ea1e071095c /xen/arch/x86/platform_hypercall.c | |
parent | 279dee95826094216e2a95db01028b048527cbf8 (diff) | |
download | xen-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/arch/x86/platform_hypercall.c')
-rw-r--r-- | xen/arch/x86/platform_hypercall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c index b33cfb8392..6461d4f0bc 100644 --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -469,6 +469,11 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) op->u.cpu_add.pxm); break; + case XENPF_mem_hotadd: + ret = memory_add(op->u.mem_add.spfn, + op->u.mem_add.epfn, + op->u.mem_add.pxm); + break; default: ret = -ENOSYS; break; |