|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 01 of 10] Add resumedomain domctl to resume a domain
# 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 10] Teach xm save to checkpoint a running domain, Brendan Cully
- [Xen-devel] [PATCH 02 of 10] Export resumedomain domctl to libxc, Brendan Cully
- [Xen-devel] [PATCH 01 of 10] Add resumedomain domctl to resume a domain after checkpoint,
Brendan Cully <=
- [Xen-devel] [PATCH 06 of 10] Make suspend hypercall return 1 when the domain has been resumed, Brendan Cully
- [Xen-devel] [PATCH 07 of 10] Add new shutdown mode for checkpoint, Brendan Cully
- [Xen-devel] [PATCH 04 of 10] Add XS_RESUME command, Brendan Cully
- [Xen-devel] [PATCH 03 of 10] Export xc_domain_resume to xend, Brendan Cully
- [Xen-devel] [PATCH 10 of 10] Ignore safe foreign maps in xc_linux_save, Brendan Cully
- [Xen-devel] [PATCH 09 of 10] Advertise address of grant table shared pages in suspend record, Brendan Cully
- [Xen-devel] [PATCH 05 of 10] Export XS_RESUME to xend, Brendan Cully
- [Xen-devel] [PATCH 08 of 10] Add xm save -c/--checkpoint option, Brendan Cully
- Re: [Xen-devel] [PATCH 00 of 10] Teach xm save to checkpoint a running domain, Steven Hand
|
|
|
|
|