[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 01 of 10] Add resumedomain domctl to resume a domain after checkpoint
# HG changeset patch # User Brendan Cully <brendan@xxxxxxxxx> # Date 1166166342 28800 # Node ID df9ac19cdb9a6b3021010c8873911bb17f7bdc7a # Parent 4d2ae322ef0294df2e3361179b48cb4c339a555f Add resumedomain domctl to resume a domain after checkpoint. Signed-off-by: Brendan Cully <brendan@xxxxxxxxx> diff -r 4d2ae322ef02 -r df9ac19cdb9a xen/common/domctl.c --- a/xen/common/domctl.c Thu Dec 14 17:25:38 2006 +0000 +++ b/xen/common/domctl.c Thu Dec 14 23:05:42 2006 -0800 @@ -240,6 +240,31 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc } break; + case XEN_DOMCTL_resumedomain: + { + struct domain *d = find_domain_by_id(op->domain); + struct vcpu *v; + + ret = -ESRCH; + if ( d != NULL ) + { + ret = -EINVAL; + printk("Resuming domain %d\n", op->domain); + if ( (d != current->domain) && (d->vcpu[0] != NULL) && + test_bit(_DOMF_shutdown, &d->domain_flags) ) + { + clear_bit(_DOMF_shutdown, &d->domain_flags); + + for_each_vcpu (d, v) + vcpu_wake (v); + + ret = 0; + } + put_domain(d); + } + } + break; + case XEN_DOMCTL_createdomain: { struct domain *d; diff -r 4d2ae322ef02 -r df9ac19cdb9a xen/include/public/domctl.h --- a/xen/include/public/domctl.h Thu Dec 14 17:25:38 2006 +0000 +++ b/xen/include/public/domctl.h Thu Dec 14 23:05:42 2006 -0800 @@ -61,6 +61,7 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_creat #define XEN_DOMCTL_destroydomain 2 #define XEN_DOMCTL_pausedomain 3 #define XEN_DOMCTL_unpausedomain 4 +#define XEN_DOMCTL_resumedomain 26 #define XEN_DOMCTL_getdomaininfo 5 struct xen_domctl_getdomaininfo { _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |