aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_types.idl
diff options
context:
space:
mode:
authorDieter Bloms <dieter@bloms.de>2012-04-25 11:38:26 +0100
committerDieter Bloms <dieter@bloms.de>2012-04-25 11:38:26 +0100
commitd9abcb8495b2d481611f8d47b45680e5d9984a33 (patch)
tree1a9735d5773e2a492ce3ec6d098e6aab21258e61 /tools/libxl/libxl_types.idl
parent8396671c939c3e42e8e96dda19800f8dcad20b65 (diff)
downloadxen-d9abcb8495b2d481611f8d47b45680e5d9984a33.tar.gz
xen-d9abcb8495b2d481611f8d47b45680e5d9984a33.tar.bz2
xen-d9abcb8495b2d481611f8d47b45680e5d9984a33.zip
libxl: set domain scheduling parameters while creating the domU
the domain specific scheduling parameters like cpu_weight, cap, slice, ... will be set during creating the domain, so this parameters can be defined in the domain config file [ Improved the documentation wording slightly. -iwj ] Signed-off-by: Dieter Bloms <dieter@bloms.de> Acked-by: Ian Campbell <Ian.Campbell@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_types.idl')
-rw-r--r--tools/libxl/libxl_types.idl13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl
index 068f3783cd..68599cb17e 100644
--- a/tools/libxl/libxl_types.idl
+++ b/tools/libxl/libxl_types.idl
@@ -224,6 +224,17 @@ libxl_domain_create_info = Struct("domain_create_info",[
MemKB = UInt(64, init_val = "LIBXL_MEMKB_DEFAULT")
+libxl_sched_params = Struct("sched_params",[
+ ("weight", integer),
+ ("cap", integer),
+ ("tslice_ms", integer),
+ ("ratelimit_us", integer),
+ ("period", integer),
+ ("slice", integer),
+ ("latency", integer),
+ ("extratime", integer),
+ ], dir=DIR_IN)
+
# Instances of libxl_file_reference contained in this struct which
# have been mapped (with libxl_file_reference_map) will be unmapped
# by libxl_domain_build/restore. If either of these are never called
@@ -255,6 +266,8 @@ libxl_domain_build_info = Struct("domain_build_info",[
("extra_pv", libxl_string_list),
# extra parameters pass directly to qemu for HVM guest, NULL terminated
("extra_hvm", libxl_string_list),
+ # parameters for all type of scheduler
+ ("sched_params", libxl_sched_params),
("u", KeyedUnion(None, libxl_domain_type, "type",
[("hvm", Struct(None, [("firmware", string),