From: Roger Pau Monne Date: Thu, 5 Jan 2017 10:08:34 +0000 (+0000) Subject: tools/libxl: include scheduler parameters in the output of xl list -l X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3052 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3b4adbadb9bea83b8b1affe2e68e1a4c454247f2;p=xen.git tools/libxl: include scheduler parameters in the output of xl list -l Signed-off-by: Roger Pau Monné Reported-by: Fatih Acar Acked-by: Wei Liu --- 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: