[xen-unstable] [IA64] Provide backing for XEN_DOMCTL_set_opt_feature

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] [IA64] Provide backing for XEN_DOMCTL_set_opt_feature

Xen patchbot-unstable
# HG changeset patch
# User Alex Williamson <[hidden email]>
# Date 1196362904 25200
# Node ID 8d5487ca222fb4f231246baee9a72fdce135ece5
# Parent  1de4e50563947c22571e928ae10900dde0e9b583
[IA64] Provide backing for XEN_DOMCTL_set_opt_feature

Signed-off-by: Alex Williamson <[hidden email]>
---
 xen/arch/ia64/xen/dom0_ops.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+)

diff -r 1de4e5056394 -r 8d5487ca222f xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c Thu Nov 29 11:57:23 2007 -0700
+++ b/xen/arch/ia64/xen/dom0_ops.c Thu Nov 29 12:01:44 2007 -0700
@@ -343,6 +343,20 @@ long arch_do_domctl(xen_domctl_t *op, XE
     }
     break;
 
+    case XEN_DOMCTL_set_opt_feature:
+    {
+        struct xen_ia64_opt_feature *optf = &op->u.set_opt_feature.optf;
+        struct domain *d = get_domain_by_id(op->domain);
+
+        if (d == NULL) {
+            ret = -EINVAL;
+            break;
+        }
+
+        ret = domain_opt_feature(d, optf);
+    }
+    break;
+
     default:
         printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
         ret = -ENOSYS;

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog