]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
libxl: don't continue to create the domain if the device model is not spawned
authorJulien Grall <julien.grall@citrix.com>
Thu, 17 Jan 2013 13:53:09 +0000 (13:53 +0000)
committerJulien Grall <julien.grall@citrix.com>
Thu, 17 Jan 2013 13:53:09 +0000 (13:53 +0000)
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.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c

index c036dc1f8ed7320c3ec60403286c123d8c3e2d02..51f991426644ab8938d3f633db64fcdfb1880bd3 100644 (file)
@@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc,
         }
     }
 
-    rc = 0;
-
  out:
     dmss->callback(egc, dmss, rc);
 }