From: Brendan Cully <brendan@cs.ubc.ca>
To: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 1 of 8] Add resumedomain domctl to resume adomain after checkpoint
Date: Thu, 11 Jan 2007 18:02:24 -0800 [thread overview]
Message-ID: <20070112020224.GC3738@ventoux.cs.ubc.ca> (raw)
In-Reply-To: <F6C735EA5A319Bkanno.masaki@jp.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
On Friday, 12 January 2007 at 10:38, Masaki Kanno wrote:
> Hi Brendan,
That was fast!
> The 26th is already defined at line 390 in domctl.h.
>
> #define XEN_DOMCTL_real_mode_area 26
> struct xen_domctl_real_mode_area {
> uint32_t log; /* log2 of Real Mode Area size */
> };
Whoops, thanks. That snuck in after I wrote the first patch series, I
think. Here's a replacement.
[-- Attachment #2: domctl-resumedomain.2.diff --]
[-- Type: text/plain, Size: 1779 bytes --]
# HG changeset patch
# User Brendan Cully <brendan@cs.ubc.ca>
# Date 1168566620 28800
# Node ID 74431b023b3cfb12968717d025d48aa27a651e72
# Parent 8fdd24d1dfbfb6134313c83832d9fefa77d6ec3f
Add resumedomain domctl to resume a domain after checkpoint.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
diff -r 8fdd24d1dfbf -r 74431b023b3c xen/common/domctl.c
--- a/xen/common/domctl.c Wed Dec 13 15:45:56 2006 -0800
+++ b/xen/common/domctl.c Thu Jan 11 17:50:20 2007 -0800
@@ -250,6 +250,31 @@ ret_t do_domctl(XEN_GUEST_HANDLE(xen_dom
}
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 8fdd24d1dfbf -r 74431b023b3c xen/include/public/domctl.h
--- a/xen/include/public/domctl.h Wed Dec 13 15:45:56 2006 -0800
+++ b/xen/include/public/domctl.h Thu Jan 11 17:50:20 2007 -0800
@@ -63,6 +63,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 27
#define XEN_DOMCTL_getdomaininfo 5
struct xen_domctl_getdomaininfo {
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2007-01-12 2:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-12 0:26 [PATCH 0 of 8] Teach xm save to checkpoint a running domain Brendan Cully
2007-01-12 0:26 ` [PATCH 1 of 8] Add resumedomain domctl to resume a domain after checkpoint Brendan Cully
2007-01-12 1:38 ` [PATCH 1 of 8] Add resumedomain domctl to resume adomain " Masaki Kanno
2007-01-12 2:02 ` Brendan Cully [this message]
2007-01-12 0:26 ` [PATCH 2 of 8] Export resumedomain domctl to libxc Brendan Cully
2007-01-12 0:26 ` [PATCH 3 of 8] Export xc_domain_resume to xend Brendan Cully
2007-01-12 0:26 ` [PATCH 4 of 8] Add XS_RESUME command Brendan Cully
2007-01-12 0:27 ` [PATCH 5 of 8] Export XS_RESUME to xend Brendan Cully
2007-01-12 0:27 ` [PATCH 6 of 8] Make suspend hypercall return 1 when the domain has been resumed Brendan Cully
2007-01-12 12:01 ` John Levon
2007-01-12 23:09 ` Brendan Cully
2007-01-12 0:27 ` [PATCH 7 of 8] Make xen_suspend handle resume Brendan Cully
2007-01-12 0:27 ` [PATCH 8 of 8] Add xm save -c/--checkpoint option Brendan Cully
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070112020224.GC3738@ventoux.cs.ubc.ca \
--to=brendan@cs.ubc.ca \
--cc=kanno.masaki@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.