libxl: don't continue to create the domain if the device model is not spawned
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.
Signed-off-by Julien Grall <[email protected]>
--- tools/libxl/libxl_dm.c | 2 -- 1 file changed, 2 deletions(-)
tools/libxl/libxl_dm.c +0 -2
@@ -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
Quoted 6 lines · Julien Grall
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 <[email protected]>
Acked-by Ian Campbell <[email protected]>
+ applied, thanks.