@@ -6844,6 +6844,17 @@ int libxl_retrieve_domain_configuration(libxl_ctx *ctx, uint32_t domid,
d_config->b_info.max_memkb = max_memkb;
}
+ /* Scheduler params */
+ {
+ libxl_domain_sched_params_dispose(&d_config->b_info.sched_params);
+ rc = libxl_domain_sched_params_get(ctx, domid,
+ &d_config->b_info.sched_params);
+ if (rc) {
+ LOGD(ERROR, domid, "Fail to get scheduler parameters");
+ goto out;
+ }
+ }
+
/* Devices: disk, nic, vtpm, pcidev etc. */
/* The MERGE macro implements following logic:
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reported-by: Fatih Acar <fatih@gandi.net> --- Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> --- This should be backported to all supported stable branches (4.6, 4.7, 4.8). --- Changes since v1: - Move fetching the scheduler parameters before device configuration. - Call libxl_domain_sched_params_dispose before fetching the parameters. --- tools/libxl/libxl.c | 11 +++++++++++ 1 file changed, 11 insertions(+)