[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: propagate down the error from libxl_domain_sched_params_set
# HG changeset patch # User Dario Faggioli <dario.faggioli@xxxxxxxxxx> # Date 1339686342 -3600 # Node ID 9dffb1864f2c516794a90a8ceece3eb044dab212 # Parent 34c725807d21451f50e7dc4ece36b137b8b35169 libxl: propagate down the error from libxl_domain_sched_params_set So that the caller (e.g., libxl__build_post() ) knows and can deal with it. Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 34c725807d21 -r 9dffb1864f2c tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c Wed Jun 13 11:51:26 2012 +0200 +++ b/tools/libxl/libxl_dom.c Thu Jun 14 16:05:42 2012 +0100 @@ -173,9 +173,11 @@ int libxl__build_post(libxl__gc *gc, uin char *dom_path, *vm_path; xs_transaction_t t; char **ents, **hvm_ents; - int i; + int i, rc; - libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + rc = libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + if (rc) + return rc; libxl_cpuid_apply_policy(ctx, domid); if (info->cpuid != NULL) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |