From: Andrew Kane Date: Wed, 25 Jul 2012 16:39:22 +0000 (+0100) Subject: libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8149 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a154ed502d0a30f980a8bd420bc3ec24ae8abf2f;p=xen.git libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler Implements sched_arinc653_domain_set to match the existing API. Currently, there is no domain-specific configuration when using the ARINC 653 scheduler, so we simply return success. Signed-off-by: Andrew Kane Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 7b99165948..89183b1365 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -3659,6 +3659,14 @@ libxl_scheduler libxl_get_scheduler(libxl_ctx *ctx) return sched; } +static int sched_arinc653_domain_set(libxl__gc *gc, uint32_t domid, + const libxl_domain_sched_params *scinfo) +{ + /* Currently, the ARINC 653 scheduler does not take any domain-specific + configuration, so we simply return success. */ + return 0; +} + static int sched_credit_domain_get(libxl__gc *gc, uint32_t domid, libxl_domain_sched_params *scinfo) { @@ -3926,6 +3934,9 @@ int libxl_domain_sched_params_set(libxl_ctx *ctx, uint32_t domid, case LIBXL_SCHEDULER_CREDIT2: ret=sched_credit2_domain_set(gc, domid, scinfo); break; + case LIBXL_SCHEDULER_ARINC653: + ret=sched_arinc653_domain_set(gc, domid, scinfo); + break; default: LOG(ERROR, "Unknown scheduler"); ret=ERROR_INVAL;