Julien Grall
2013-Jan-10 12:21 UTC
[PATCH] 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. Signed-off-by: Julien Grall <julien.grall@citrix.com> --- tools/libxl/libxl_dm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index c036dc1..51f9914 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -1215,8 +1215,6 @@ static void device_model_spawn_outcome(libxl__egc *egc, } } - rc = 0; - out: dmss->callback(egc, dmss, rc); } -- Julien Grall
Ian Campbell
2013-Jan-17 13:53 UTC
Re: [PATCH] libxl: don''t continue to create the domain if the device model is not spawned
On Thu, 2013-01-10 at 12:21 +0000, Julien Grall wrote:> 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> + applied, thanks.