diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-08 11:37:44 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-08 11:37:44 +0000 |
commit | 17fed54483fbeac4792adaac7c17983853052281 (patch) | |
tree | 5d5fdfe1e9156bd645d1bcd87bd156793534dd02 | |
parent | 66e24c20de578f38c3c12375b51945697e8c35ec (diff) | |
download | xen-17fed54483fbeac4792adaac7c17983853052281.tar.gz xen-17fed54483fbeac4792adaac7c17983853052281.tar.bz2 xen-17fed54483fbeac4792adaac7c17983853052281.zip |
[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@jp.fujitsu.com>
-rw-r--r-- | xen/arch/ia64/xen/dom0_ops.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/xen/arch/ia64/xen/dom0_ops.c b/xen/arch/ia64/xen/dom0_ops.c index 5c521c96cb..7a5e4ef20d 100644 --- a/xen/arch/ia64/xen/dom0_ops.c +++ b/xen/arch/ia64/xen/dom0_ops.c @@ -683,6 +683,35 @@ long arch_do_domctl(xen_domctl_t *op, XEN_GUEST_HANDLE(xen_domctl_t) u_domctl) } 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; |