aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domctl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-20 10:23:28 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-20 10:23:28 +0100
commit1eb8140e5b6f54631110d9d8ecdcd60dfefeb462 (patch)
treed9d5bfe3b9f74ee3d6df9f9705b98383dbfb1c15 /xen/common/domctl.c
parent87cb99a6dda5f1b5b0ace461757eae782a3d7873 (diff)
downloadxen-1eb8140e5b6f54631110d9d8ecdcd60dfefeb462.tar.gz
xen-1eb8140e5b6f54631110d9d8ecdcd60dfefeb462.tar.bz2
xen-1eb8140e5b6f54631110d9d8ecdcd60dfefeb462.zip
Fix nomigrate option implementation so that Xen builds.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r--xen/common/domctl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c
index 44a18ab1ec..0b9ad758dd 100644
--- a/xen/common/domctl.c
+++ b/xen/common/domctl.c
@@ -948,6 +948,19 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
}
break;
+ case XEN_DOMCTL_disable_migrate:
+ {
+ struct domain *d;
+ ret = -ESRCH;
+ if ( (d = rcu_lock_domain_by_id(op->domain)) != NULL )
+ {
+ d->disable_migrate = op->u.disable_migrate.disable;
+ rcu_unlock_domain(d);
+ ret = 0;
+ }
+ }
+ break;
+
default:
ret = arch_do_domctl(op, u_domctl);
break;