[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] support XEN_DOMCTL_mem_sharing_op
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1262950664 0 # Node ID dc8fb5dc629dc9f8a657480eb8d42b1018d916d3 # Parent b600a7e8acfef3820b78daa71c6b31f15c36dc36 [IA64] support XEN_DOMCTL_mem_sharing_op Because memory sharing is not implemented on ia64, only XEN_DOMCTL_MEM_SHARING_OP_CONTROL is supported. Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> --- xen/arch/ia64/xen/dom0_ops.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+) diff -r b600a7e8acfe -r dc8fb5dc629d xen/arch/ia64/xen/dom0_ops.c --- a/xen/arch/ia64/xen/dom0_ops.c Fri Jan 08 11:33:37 2010 +0000 +++ b/xen/arch/ia64/xen/dom0_ops.c Fri Jan 08 11:37:44 2010 +0000 @@ -683,6 +683,35 @@ long arch_do_domctl(xen_domctl_t *op, XE } break; + case XEN_DOMCTL_mem_sharing_op: + { + xen_domctl_mem_sharing_op_t *mec = &op->u.mem_sharing_op; + struct domain *d = rcu_lock_domain_by_id(op->domain); + + ret = -ESRCH; + if (d == NULL) + break; + + switch(mec->op) + { + case XEN_DOMCTL_MEM_SHARING_OP_CONTROL: + { + if (mec->u.enable) { + ret = -EINVAL; /* not implemented */ + break; + } + ret = 0; + } + break; + + default: + ret = -ENOSYS; + } + + rcu_unlock_domain(d); + } + break; + default: printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd); ret = -ENOSYS; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |