ia64/xen-unstable

changeset 19000:4fd4dcf2f891

[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@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Jan 28 12:22:58 2009 +0900 (2009-01-28)
parents b0beee268543
children 79f259a26a11
files xen/arch/ia64/xen/dom0_ops.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Wed Jan 07 14:28:33 2009 +0900
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Wed Jan 28 12:22:58 2009 +0900
     1.3 @@ -649,6 +649,39 @@ long arch_do_domctl(xen_domctl_t *op, XE
     1.4      }
     1.5      break;
     1.6  
     1.7 +    case XEN_DOMCTL_set_address_size:
     1.8 +    {
     1.9 +        struct domain *d = rcu_lock_domain_by_id(op->domain);
    1.10 +
    1.11 +        ret = -ESRCH;
    1.12 +        if (d == NULL)
    1.13 +            break;
    1.14 +
    1.15 +        ret = -EINVAL;
    1.16 +        if (op->u.address_size.size == BITS_PER_LONG)
    1.17 +            ret = 0;
    1.18 +
    1.19 +        rcu_unlock_domain(d);
    1.20 +    }
    1.21 +    break;
    1.22 +
    1.23 +    case XEN_DOMCTL_get_address_size:
    1.24 +    {
    1.25 +        struct domain *d = rcu_lock_domain_by_id(op->domain);
    1.26 +
    1.27 +        ret = -ESRCH;
    1.28 +        if (d  == NULL)
    1.29 +            break;
    1.30 +
    1.31 +        ret = 0;
    1.32 +        op->u.address_size.size = BITS_PER_LONG;
    1.33 +        rcu_unlock_domain(d);
    1.34 +
    1.35 +        if (copy_to_guest(u_domctl, op, 1))
    1.36 +            ret = -EFAULT;
    1.37 +    }
    1.38 +    break;
    1.39 +
    1.40      default:
    1.41          printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
    1.42          ret = -ENOSYS;