]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler
authorAndrew Kane <Andrew.Kane@dornerworks.com>
Wed, 25 Jul 2012 16:39:22 +0000 (17:39 +0100)
committerAndrew Kane <Andrew.Kane@dornerworks.com>
Wed, 25 Jul 2012 16:39:22 +0000 (17:39 +0100)
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>
tools/libxl/libxl.c

index 7b9916594808caee43353e238bd6848bc116bd67..89183b1365e7e83e1727d5d69b7139906355d963 100644 (file)
@@ -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;