* [PATCH 6/7] libxenlight resend: domain resume
@ 2009-12-02 18:03 Andres Lagar-Cavilla
2009-12-03 12:41 ` Stefano Stabellini
2009-12-03 17:07 ` [PATCH 6/7] libxenlight meta-resend: " Andres Lagar-Cavilla
0 siblings, 2 replies; 3+ messages in thread
From: Andres Lagar-Cavilla @ 2009-12-02 18:03 UTC (permalink / raw)
To: Stefano Stabellini, Vincent Hanquez, xen-devel
[-- Attachment #1: Type: text/plain, Size: 217 bytes --]
Added libxenlight implementation for resume domain.
This brings back a cooperative pv domain from the
shutdown state after save, enabling checkpointing.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
[-- Attachment #2: 06_domain_resume.patch --]
[-- Type: text/plain, Size: 1960 bytes --]
# HG changeset patch
# User Andres Lagar-Cavilla <andres@lagarcavilla.com>
# Date 1259767910 18000
# Node ID f39b04723026235f08002252427d5082b36ee126
# Parent 4ce3fd759e994f9bb2588492f59346dccd54bd92
Added libxenlight implementation for resume domain.
This brings back a cooperative pv domain from the
shutdown state after save, enabling checkpointing.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
diff -r 4ce3fd759e99 -r f39b04723026 libxl.c
--- a/libxl.c
+++ b/libxl.c
@@ -264,6 +264,28 @@ int libxl_domain_restore(struct libxl_ct
return 0;
}
+int libxl_domain_resume(struct libxl_ctx *ctx, uint32_t domid)
+{
+ if (is_hvm(ctx, domid)) {
+ XL_LOG(ctx, XL_LOG_DEBUG, "Called domain_resume on "
+ "non-cooperative hvm domain %u", domid);
+ return ERROR_NI;
+ }
+ if (xc_domain_resume(ctx->xch, domid, 1)) {
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR,
+ "xc_domain_resume failed for domain %u",
+ domid);
+ return ERROR_FAIL;
+ }
+ if (!xs_resume_domain(ctx->xsh, domid)) {
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR,
+ "xs_resume_domain failed for domain %u",
+ domid);
+ return ERROR_FAIL;
+ }
+ return 0;
+}
+
struct libxl_dominfo * libxl_domain_list(struct libxl_ctx *ctx, int *nb_domain)
{
struct libxl_dominfo *ptr;
diff -r 4ce3fd759e99 -r f39b04723026 libxl.h
--- a/libxl.h
+++ b/libxl.h
@@ -262,6 +262,7 @@ int libxl_domain_restore(struct libxl_ct
libxl_device_model_info *dm_info);
int libxl_domain_suspend(struct libxl_ctx *ctx, libxl_domain_suspend_info *info,
uint32_t domid, int fd);
+int libxl_domain_resume(struct libxl_ctx *ctx, uint32_t domid);
int libxl_domain_shutdown(struct libxl_ctx *ctx, uint32_t domid, int req);
int libxl_domain_destroy(struct libxl_ctx *ctx, uint32_t domid, int force);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 6/7] libxenlight resend: domain resume
2009-12-02 18:03 [PATCH 6/7] libxenlight resend: domain resume Andres Lagar-Cavilla
@ 2009-12-03 12:41 ` Stefano Stabellini
2009-12-03 17:07 ` [PATCH 6/7] libxenlight meta-resend: " Andres Lagar-Cavilla
1 sibling, 0 replies; 3+ messages in thread
From: Stefano Stabellini @ 2009-12-03 12:41 UTC (permalink / raw)
To: Andres Lagar-Cavilla
Cc: xen-devel@lists.xensource.com, Vincent Hanquez,
Stefano Stabellini
On Wed, 2 Dec 2009, Andres Lagar-Cavilla wrote:
> Added libxenlight implementation for resume domain.
> This brings back a cooperative pv domain from the
> shutdown state after save, enabling checkpointing.
>
> Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
>
>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 6/7] libxenlight meta-resend: domain resume
2009-12-02 18:03 [PATCH 6/7] libxenlight resend: domain resume Andres Lagar-Cavilla
2009-12-03 12:41 ` Stefano Stabellini
@ 2009-12-03 17:07 ` Andres Lagar-Cavilla
1 sibling, 0 replies; 3+ messages in thread
From: Andres Lagar-Cavilla @ 2009-12-03 17:07 UTC (permalink / raw)
To: Stefano Stabellini, Vincent Hanquez, xen-devel
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
Added libxenlight implementation for resume domain.
This brings back a cooperative pv domain from the
shutdown state after save, enabling checkpointing.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
[-- Attachment #2: 06_domain_resume.patch --]
[-- Type: text/x-patch, Size: 1960 bytes --]
# HG changeset patch
# User Andres Lagar-Cavilla <andres@lagarcavilla.com>
# Date 1259767910 18000
# Node ID f39b04723026235f08002252427d5082b36ee126
# Parent 4ce3fd759e994f9bb2588492f59346dccd54bd92
Added libxenlight implementation for resume domain.
This brings back a cooperative pv domain from the
shutdown state after save, enabling checkpointing.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
diff -r 4ce3fd759e99 -r f39b04723026 libxl.c
--- a/libxl.c
+++ b/libxl.c
@@ -264,6 +264,28 @@ int libxl_domain_restore(struct libxl_ct
return 0;
}
+int libxl_domain_resume(struct libxl_ctx *ctx, uint32_t domid)
+{
+ if (is_hvm(ctx, domid)) {
+ XL_LOG(ctx, XL_LOG_DEBUG, "Called domain_resume on "
+ "non-cooperative hvm domain %u", domid);
+ return ERROR_NI;
+ }
+ if (xc_domain_resume(ctx->xch, domid, 1)) {
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR,
+ "xc_domain_resume failed for domain %u",
+ domid);
+ return ERROR_FAIL;
+ }
+ if (!xs_resume_domain(ctx->xsh, domid)) {
+ XL_LOG_ERRNO(ctx, XL_LOG_ERROR,
+ "xs_resume_domain failed for domain %u",
+ domid);
+ return ERROR_FAIL;
+ }
+ return 0;
+}
+
struct libxl_dominfo * libxl_domain_list(struct libxl_ctx *ctx, int *nb_domain)
{
struct libxl_dominfo *ptr;
diff -r 4ce3fd759e99 -r f39b04723026 libxl.h
--- a/libxl.h
+++ b/libxl.h
@@ -262,6 +262,7 @@ int libxl_domain_restore(struct libxl_ct
libxl_device_model_info *dm_info);
int libxl_domain_suspend(struct libxl_ctx *ctx, libxl_domain_suspend_info *info,
uint32_t domid, int fd);
+int libxl_domain_resume(struct libxl_ctx *ctx, uint32_t domid);
int libxl_domain_shutdown(struct libxl_ctx *ctx, uint32_t domid, int req);
int libxl_domain_destroy(struct libxl_ctx *ctx, uint32_t domid, int force);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-03 17:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 18:03 [PATCH 6/7] libxenlight resend: domain resume Andres Lagar-Cavilla
2009-12-03 12:41 ` Stefano Stabellini
2009-12-03 17:07 ` [PATCH 6/7] libxenlight meta-resend: " Andres Lagar-Cavilla
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.