xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler
@ 2012-07-25 15:42 Andrew Kane
  2012-07-25 15:45 ` Ian Campbell
  2012-07-25 15:48 ` Dario Faggioli
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Kane @ 2012-07-25 15:42 UTC (permalink / raw)
  To: xen-devel; +Cc: george.dunlap, Steve.VanderLeest, raistlin, Ian.Campbell

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>

---
Changed since v1:
  * changed comment to C-style (/* */)

diff -r 4a28c496acbf -r c6d90859a30a tools/libxl/libxl.c
--- a/tools/libxl/libxl.c	Mon Jul 23 17:58:33 2012 +0100
+++ b/tools/libxl/libxl.c	Wed Jul 25 11:40:25 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 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 15:42 [PATCH v2] libxl: libxl_domain_sched_params_set case for ARINC 653 scheduler Andrew Kane
2012-07-25 15:45 ` Ian Campbell
2012-07-25 16:41   ` Ian Campbell
2012-07-25 15:48 ` Dario Faggioli
2012-07-25 18:11   ` Andrew Kane
2012-07-25 22:11     ` Dario Faggioli

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).