This patch is necessary for xm dump-core patch. [IA64] support XEN_DOMCTL_[gs]et_address_size
support XEN_DOMCTL_[gs]et_address_size to support the updated xm dump-core. Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp> diff --git a/xen/arch/ia64/xen/dom0_ops.c b/xen/arch/ia64/xen/dom0_ops.c --- a/xen/arch/ia64/xen/dom0_ops.c +++ b/xen/arch/ia64/xen/dom0_ops.c @@ -649,6 +649,39 @@ long arch_do_domctl(xen_domctl_t *op, XE } break; + case XEN_DOMCTL_set_address_size: + { + struct domain *d = rcu_lock_domain_by_id(op->domain); + + ret = -ESRCH; + if (d == NULL) + break; + + ret = -EINVAL; + if (op->u.address_size.size == BITS_PER_LONG) + ret = 0; + + rcu_unlock_domain(d); + } + break; + + case XEN_DOMCTL_get_address_size: + { + struct domain *d = rcu_lock_domain_by_id(op->domain); + + ret = -ESRCH; + if (d == NULL) + break; + + ret = 0; + op->u.address_size.size = BITS_PER_LONG; + rcu_unlock_domain(d); + + if (copy_to_guest(u_domctl, op, 1)) + ret = -EFAULT; + } + break; + default: printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd); ret = -ENOSYS; -- yamahata _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@lists.xensource.com http://lists.xensource.com/xen-ia64-devel