Displaying 6 results from an estimated 6 matches for "xc_domain_destroy".
2007 Aug 28
6
[PATCH] Make XEN_DOMCTL_destroydomain hypercall continuable.
...mahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
diff -r 58d131f1fb35 -r 2c9db26f1d0e tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Fri Aug 24 16:32:56 2007 +0100
+++ b/tools/libxc/xc_domain.c Tue Aug 28 13:06:41 2007 +0900
@@ -55,10 +55,17 @@ int xc_domain_destroy(int xc_handle,
int xc_domain_destroy(int xc_handle,
uint32_t domid)
{
+ int ret;
DECLARE_DOMCTL;
domctl.cmd = XEN_DOMCTL_destroydomain;
domctl.domain = (domid_t)domid;
- return do_domctl(xc_handle, &domctl);
+ for (;;) {
+ ret = do_domctl(...
2011 Dec 02
7
libxl: error when destroying domain on NetBSD
...the domain
do_domctl failed: errno 3
libxl: error: libxl.c:762:libxl_domain_destroy: xc_domain_pause failed for 1
libxl: error: libxl_dom.c:658:userdata_path: unable to find domain
info for domain 1: No such file or directory
do_domctl failed: errno 3
libxl: error: libxl.c:787:libxl_domain_destroy: xc_domain_destroy failed for 1
Done. Exiting now
The domain is destroyed, but xenstore is not cleaned properly, and
hotplug scripts are not executed because the state of the devices
doesn''t get to 6 until xl exits. From libxl code I guess the following
procedure is used to destroy the domain:
* Destroy P...
2006 Apr 24
5
''xm list'' states
Hi,
can someone explain the states shown by the ''xm list'' command?
''r'' (running) - The domain is currently running.
- This flag is always shown for the Domain 0, but never for
unprivileged domains, why?
''b'' (blocked) - The domain is blocked.
- What does that mean? Why should a domain be blocked?
''p'' (paused) - The domain
2007 Jan 11
0
[PATCH 6/8] HVM save restore: guest memory handling
...oto out;
+ }
+
+ if ( (rc = xc_vcpu_setcontext(xc_handle, dom, i, &ctxt)) ) {
+ ERROR("Could not set vcpu context, rc=%d", rc);
+ goto out;
+ }
+ }
+
+ rc = 0;
+ goto out;
+
+ out:
+ if ( (rc != 0) && (dom != 0) )
+ xc_domain_destroy(xc_handle, dom);
+ free(p2m);
+
+ DPRINTF("Restore exit with rc=%d\n", rc);
+
+ return rc;
}
diff -r bb1c450b2739 tools/libxc/xc_hvm_save.c
--- a/tools/libxc/xc_hvm_save.c Thu Jan 11 21:03:11 2007 +0800
+++ b/tools/libxc/xc_hvm_save.c Thu Jan 11 21:05:10 2007 +0800
@@ -32,9 +32,...
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...t; 0) {
- XL_LOG(ctx, XL_LOG_ERROR, "xc_domain_pause failed for %d\n", domid);
+ rc = xc_domain_pause(ctx->xch, domid);
+ if (rc < 0) {
+ XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, rc, "xc_domain_pause failed for %d", domid);
return -1;
}
- if (xc_domain_destroy(ctx->xch, domid) < 0) {
- XL_LOG(ctx, XL_LOG_ERROR, "xc_domain_destroy failed for %d\n", domid);
+ rc = xc_domain_destroy(ctx->xch, domid);
+ if (rc < 0) {
+ XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, rc, "xc_domain_destroy failed for %d", domid);...
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...gc, XBT_NULL, libxl_sprintf(&gc, "%s/vm", dom_path));
if (vm_path)
if (!xs_rm(ctx->xsh, XBT_NULL, vm_path))
XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "xs_rm failed for %s", vm_path);
@@ -881,17 +942,24 @@ int libxl_domain_destroy(libxl_ctx *ctx,
rc = xc_domain_destroy(ctx->xch, domid);
if (rc < 0) {
XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, rc, "xc_domain_destroy failed for %d", domid);
- return ERROR_FAIL;
+ rc = ERROR_FAIL;
+ goto out;
}
+ rc = 0;
+out:
+ libxl_free_all(&gc);
return 0;
}
int l...