[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |