|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] tools/xl: add suspend-to-ram and resume subcommands
Added my S-o-B (no other change). On 29 Feb 2024 08:00, zithro / Cyril Rébert wrote: The xl command doesn't provide suspend/resume, so add them : xl suspend-to-ram <Domain> xl resume <Domain> 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 <andrew.cooper3@xxxxxxxxxx> Suggested-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Cyril Rébert (zithro) <slack@xxxxxxxxx> --- - Tested on v4.17, x86 - the function "libxl_domain_resume" is called like libvirt does, so using a "co-operative resume", but I don't know what it means (: - there may be a problem with the words resume <-> restore, like for "LIBXL_HAVE_NO_SUSPEND_RESUME" - for the docs, I only slightly adapted a copy/paste from xl pause ... --- --- docs/man/xl.1.pod.in | 10 ++++++++++ tools/xl/xl.h | 2 ++ tools/xl/xl_cmdtable.c | 10 ++++++++++ tools/xl/xl_vmcontrol.c | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/docs/man/xl.1.pod.in b/docs/man/xl.1.pod.in index bed8393473..63d80f1449 100644 --- a/docs/man/xl.1.pod.in +++ b/docs/man/xl.1.pod.in @@ -682,6 +682,10 @@ Pass the VNC password to vncviewer via stdin.=back +=item B<resume> I<domain-id>+ +Resume a domain, after having been suspended to RAM. + =item B<save> [I<OPTIONS>] I<domain-id> I<checkpointfile> [I<configfile>]Saves a running domain to a state file so that it can be restored@@ -760,6 +764,12 @@ in response to this event.=back +=item B<suspend-to-ram> I<domain-id>+ +Suspend a domain to RAM. When in a suspended state the domain will still +consume allocated resources (such as memory), but will not be eligible for +scheduling by the Xen hypervisor. It is in a shutdown state, but not dying. + =item B<sysrq> I<domain-id> I<letter>Send a <Magic System Request> to the domain, each type of request is -- ++ zithro / Cyril
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |