From 3b4adbadb9bea83b8b1affe2e68e1a4c454247f2 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Thu, 5 Jan 2017 10:08:34 +0000 Subject: [PATCH] tools/libxl: include scheduler parameters in the output of xl list -l MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roger Pau Monné Reported-by: Fatih Acar Acked-by: Wei Liu --- tools/libxl/libxl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 2f83731a8b..d03e93968e 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -6851,6 +6851,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: -- 2.30.2