From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 1 of 2 v2] libxl: propagete down the error from libxl_domain_sched_params_set Date: Thu, 07 Jun 2012 15:42:32 +0200 Message-ID: <93ff3e5ecdee68b4f949.1339076552@Solace> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: George Dunlap , Juergen Gross , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org So that the caller (e.g., libxl__build_post() ) knows and can deal with it. Signed-off-by: Dario Faggioli diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -175,7 +175,8 @@ int libxl__build_post(libxl__gc *gc, uin char **ents, **hvm_ents; int i; - libxl_domain_sched_params_set(CTX, domid, &info->sched_params); + if (libxl_domain_sched_params_set(CTX, domid, &info->sched_params)) + return ERROR_INVAL; libxl_cpuid_apply_policy(ctx, domid); if (info->cpuid != NULL)