Skip to contentSkip to conversation

libxl: don't continue to create the domain if the device model is not spawned

PATCH In review Julien Grall 2 participants 2 messages Jan 10, 2013 – Jan 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: don't continue to create the domain if the device model is not spawned

When the device model can't be spawned, rc variable is cleared in device_model_spawn_outcome (libxl_dm.c).
In this case libxl will continue to create the domain and let it between life and death.

---
 tools/libxl/libxl_dm.c |    2 --
 1 file changed, 2 deletions(-)
tools/libxl/libxl_dm.c +0 -2
index c036dc1..51f9914 100644
@@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc,
         }
     }
 
-    rc = 0;
-
  out:
     dmss->callback(egc, dmss, rc);
 }
Signature · 1 line
Julien Grall