|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 02 of 10] Export resumedomain domctl to libxc
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1166166342 28800
# Node ID 08aa64728a7485274c5765968c77c07771ebbbf1
# Parent df9ac19cdb9a6b3021010c8873911bb17f7bdc7a
Export resumedomain domctl to libxc.
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
diff -r df9ac19cdb9a -r 08aa64728a74 tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Thu Dec 14 23:05:42 2006 -0800
+++ b/tools/libxc/xc_domain.c Thu Dec 14 23:05:42 2006 -0800
@@ -86,6 +86,16 @@ int xc_domain_shutdown(int xc_handle,
out1:
return ret;
+}
+
+
+int xc_domain_resume(int xc_handle,
+ uint32_t domid)
+{
+ DECLARE_DOMCTL;
+ domctl.cmd = XEN_DOMCTL_resumedomain;
+ domctl.domain = (domid_t)domid;
+ return do_domctl(xc_handle, &domctl);
}
diff -r df9ac19cdb9a -r 08aa64728a74 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h Thu Dec 14 23:05:42 2006 -0800
+++ b/tools/libxc/xenctrl.h Thu Dec 14 23:05:42 2006 -0800
@@ -236,6 +236,18 @@ int xc_domain_destroy(int xc_handle,
int xc_domain_destroy(int xc_handle,
uint32_t domid);
+
+/**
+ * This function resumes a suspended domain. The domain should have
+ * been previously suspended.
+ *
+ * @parm xc_handle a handle to an open hypervisor interface
+ * @parm domid the domain id to resume
+ * return 0 on success, -1 on failure
+ */
+int xc_domain_resume(int xc_handle,
+ uint32_t domid);
+
/**
* This function will shutdown a domain. This is intended for use in
* fully-virtualized domains where this operation is analogous to the
_______________________________________________
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
|
|
|
|
|