diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-06-01 12:06:18 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-06-01 12:06:18 +0100 |
commit | 1b0c3e785e30de60bd93de53218907b2a3771839 (patch) | |
tree | d5cbdc8f285f5f3b12682576700f0ef251f10234 /tools/libxl/libxl_types.idl | |
parent | 24879b00baf0e7cf5c9ed43112ac77e3c7735dfb (diff) | |
download | xen-1b0c3e785e30de60bd93de53218907b2a3771839.tar.gz xen-1b0c3e785e30de60bd93de53218907b2a3771839.tar.bz2 xen-1b0c3e785e30de60bd93de53218907b2a3771839.zip |
libxl: add internal function to get a domain's scheduler
This takes into account cpupools.
Add a helper to get the info for a single cpu pool, refactor libxl_list_cpupool
t use this. While there fix the leaks due to not disposing the partial list on
realloc failure in that function.
Fix the failure of sched_domain_output to free the poolinfo list.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_types.idl')
-rw-r--r-- | tools/libxl/libxl_types.idl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 508194bd12..3d5b4bb310 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -107,7 +107,9 @@ libxl_bios_type = Enumeration("bios_type", [ ]) # Consistent with values defined in domctl.h +# Except unknown which we have made up libxl_scheduler = Enumeration("scheduler", [ + (0, "unknown"), (4, "sedf"), (5, "credit"), (6, "credit2"), |