All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: Do not try to destroy domain -1 on failed create
@ 2015-07-01 14:22 Ian Jackson
  2015-07-01 14:31 ` Ian Campbell
  2015-07-01 14:41 ` Julien Grall
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Jackson @ 2015-07-01 14:22 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Ian Jackson

Perhaps since f0c4c53f "libxl: domain create: Do not destroy on ao
abort", we have destroyed guest_domid==-1 if domain creation fails
without actually creating a domid.

Reported-by: Julien Grall <julien.grall@citrix.com>
CC: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 tools/libxl/libxl_create.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
index f366a09..f799081 100644
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -1543,7 +1543,7 @@ static void domcreate_complete(libxl__egc *egc,
     libxl_domain_config_dispose(d_config_saved);
 
     if (!retain_domain) {
-        if (dcs->guest_domid) {
+        if (dcs->guest_domid > 0) {
             dcs->dds.ao = ao;
             dcs->dds.domid = dcs->guest_domid;
             dcs->dds.callback = domcreate_destruction_cb;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-01 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-01 14:22 [PATCH] libxl: Do not try to destroy domain -1 on failed create Ian Jackson
2015-07-01 14:31 ` Ian Campbell
2015-07-01 14:41 ` Julien Grall

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.