ia64/xen-unstable

changeset 16476:8d5487ca222f

[IA64] Provide backing for XEN_DOMCTL_set_opt_feature

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Nov 29 12:01:44 2007 -0700 (2007-11-29)
parents 1de4e5056394
children f9ca1d8c9e65
files xen/arch/ia64/xen/dom0_ops.c
line diff
     1.1 --- a/xen/arch/ia64/xen/dom0_ops.c	Thu Nov 29 11:57:23 2007 -0700
     1.2 +++ b/xen/arch/ia64/xen/dom0_ops.c	Thu Nov 29 12:01:44 2007 -0700
     1.3 @@ -343,6 +343,20 @@ long arch_do_domctl(xen_domctl_t *op, XE
     1.4      }
     1.5      break;
     1.6  
     1.7 +    case XEN_DOMCTL_set_opt_feature:
     1.8 +    {
     1.9 +        struct xen_ia64_opt_feature *optf = &op->u.set_opt_feature.optf;
    1.10 +        struct domain *d = get_domain_by_id(op->domain);
    1.11 +
    1.12 +        if (d == NULL) {
    1.13 +            ret = -EINVAL;
    1.14 +            break;
    1.15 +        }
    1.16 +
    1.17 +        ret = domain_opt_feature(d, optf);
    1.18 +    }
    1.19 +    break;
    1.20 +
    1.21      default:
    1.22          printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
    1.23          ret = -ENOSYS;