|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 2 of 8] Export resumedomain domctl to libxc
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1168565202 28800
# Node ID 30e07c0e462be0d6237ac461b1fd1ba046dbe7c1
# Parent 4514d8e0843ca4e46128dd43e3f0d2b04b24ff92
Export resumedomain domctl to libxc.
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
diff -r 4514d8e0843c -r 30e07c0e462b tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Thu Jan 11 17:26:42 2007 -0800
+++ b/tools/libxc/xc_domain.c Thu Jan 11 17:26:42 2007 -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 4514d8e0843c -r 30e07c0e462b tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h Thu Jan 11 17:26:42 2007 -0800
+++ b/tools/libxc/xenctrl.h Thu Jan 11 17:26:42 2007 -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
|
|
|
|
|