xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler
@ 2012-07-24 16:59 Andrew Kane
  2012-07-24 18:31 ` Dario Faggioli
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Kane @ 2012-07-24 16:59 UTC (permalink / raw)
  To: xen-devel; +Cc: george.dunlap

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>

diff -r 4a28c496acbf -r 857a035d6a4a tools/libxl/libxl.c
--- a/tools/libxl/libxl.c	Mon Jul 23 17:58:33 2012 +0100
+++ b/tools/libxl/libxl.c	Tue Jul 24 11:41:39 2012 -0400
@@ -3642,6 +3642,14 @@ libxl_scheduler libxl_get_scheduler(libx
     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)
 {
@@ -3909,6 +3917,9 @@ int libxl_domain_sched_params_set(libxl_
     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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-25  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 16:59 [PATCH] libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler Andrew Kane
2012-07-24 18:31 ` Dario Faggioli
2012-07-24 19:09   ` Andrew Kane
2012-07-24 22:48     ` Dario Faggioli
2012-07-25  8:59       ` Ian Campbell
2012-07-25  9:15       ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).