[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] support XEN_DOMCTL_[gs]et_address_size
# HG changeset patch # User Isaku Yamahata <yamahata@xxxxxxxxxxxxx> # Date 1233112978 -32400 # Node ID 4fd4dcf2f8916ab4656911a76e52fc6b1ad42c2f # Parent b0beee2685433da53ba3943880282c3e38e7a257 [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 <yamahata@xxxxxxxxxxxxx> --- xen/arch/ia64/xen/dom0_ops.c | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+) diff -r b0beee268543 -r 4fd4dcf2f891 xen/arch/ia64/xen/dom0_ops.c --- a/xen/arch/ia64/xen/dom0_ops.c Wed Jan 07 14:28:33 2009 +0900 +++ b/xen/arch/ia64/xen/dom0_ops.c Wed Jan 28 12:22:58 2009 +0900 @@ -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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |