tools/libxl: include scheduler parameters in the output of xl list -l
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 5 Jan 2017 10:08:34 +0000 (10:08 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 5 Jan 2017 16:32:37 +0000 (16:32 +0000)
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Fatih Acar <fatih@gandi.net>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c

index 2f83731a8b8f575166a7df7846bde31fe91e0730..d03e93968e0110e87bf5d9813bc782118b10e4b5 100644 (file)
@@ -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: