mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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 <Andrew.Kane@dornerworks.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
4147c74e87
commit
a154ed502d
1 file changed
+11
@@ -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;
|
||||
|
||||