tools/libxl: include scheduler parameters in the output of xl list -l
PATCH v2 1/1 tools/libxl: include scheduler parameters in the output of xl list -l
Signed-off-by Roger Pau Monné <[email protected]>
Reported-by Fatih Acar <[email protected]>
---
Cc: Ian Jackson <[email protected]>
Cc: Wei Liu <[email protected]>
---
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(+)
tools/libxl/libxl.c +11 -0
@@ -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:
Signature · 7 lines
2.10.1 (Apple Git-78) _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 2 lines · Roger Pau Monne
Signed-off-by Roger Pau Monné <[email protected]>Reported-by Fatih Acar <[email protected]>
Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel