[PATCH] tools/misc: fix xenwatchdogd invocation

2024-03-25 Thread zithro / Cyril Rébert
When xenwatchdogd is invoked with -h/--help (or any non-number), the argument value is converted to 0, which immediately shutdowns dom0. So make sure only numbers are passed to the program, otherwise fail. For the help, use getopt_long as suggested. While there, reformat the code a bit (s/tabs/spa

[PATCH v2] docs/man: add shutdown reasons to xl (list) man page

2024-03-08 Thread zithro / Cyril Rébert
Add the shutdown reasons to the paragraph of "xl list" concerning the shutdown status. I have adapted the explanations from the source code : - tools/xl/xl_info.c : function "list_domains()", variable "shutdown_reason_letters" - xen/include/public/sched.h : variable "shed_shutdown_reason" Su

[PATCH] docs/man: add shutdown reasons to xl (list) man page

2024-03-05 Thread zithro / Cyril Rébert
Add the shutdown reasons to the paragraph of "xl list" concerning the shutdown status. I have copy/pasted the explanations from the source code : - tools/xl/xl_info.c (L379) - xen/include/public/sched.h (starting L158) Suggested-by: Roger Pau Monné Signed-off-by: Cyril Rébert / zithro --- do

[PATCH] tools/xl: add suspend-to-ram and resume subcommands

2024-02-28 Thread zithro / Cyril Rébert
The xl command doesn't provide suspend/resume, so add them : xl suspend-to-ram xl resume This patch follows a discussion on XenDevel: when you want the virtualized equivalent of "sleep"-ing a host, it's better to suspend/resume than to pause/unpause a domain. Suggested-by: Andrew Cooper Su

[PATCH v3] tools/xentop: add option to display dom0 first

2024-02-07 Thread zithro / Cyril Rébert
From: Cyril Rébert Add a command line option to xentop to be able to display dom0 first, on top of the list. This is unconditional, so sorting domains with the S option will also ignore dom0. Signed-off-by: Cyril Rébert (zithro) --- Changes in v3: (none, just reformatting patch correctly ...

[PATCH v2] tools/xentop: add option to display dom0 first

2024-02-06 Thread zithro / Cyril Rébert
Add a command line option to xentop to be able to display dom0 first, on top of the list. This is unconditional, so sorting domains with the S option will also ignore dom0. Signed-off-by: Cyril Rébert (zithro) --- Changes in v2: - bug fix - add documentation --- docs/man/xentop.1.pod | 6

[PATCH] tools/xentop: fix sorting bug for some columns

2024-02-04 Thread zithro / Cyril Rébert
From: Cyril Rébert Sort doesn't work on columns VBD_OO, VBD_RD, VBD_WR and VBD_RSECT. Fix by adjusting variables names in compare functions. Bug fix only. No functional change. Signed-off-by: Cyril Rébert (zithro) --- tools/xentop/xentop.c | 10 +- 1 file changed, 5 insertions(+), 5 de