Skip to content

QGA: systemd hibernate/suspend/hybrid-sleep

Daniel Henrique Barboza qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesIn review
  2. v16 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6qga: refactoring qmp_guest_suspend_* functionsqga/commands-posix.c+55 -320 replies
2/6qga: bios_supports_mode: decoupling pm-utils and sys logicqga/commands-posix.c+68 -480 replies
3/6qga: guest_suspend: decoupling pm-utils and sys logicqga/commands-posix.c+108 -620 replies
4/6qga: removing switch statements, adding run_process_childqga/commands-posix.c+84 -1270 replies
5/6qga: systemd hibernate/suspend/hybrid-sleep supportqga/commands-posix.c+72 -00 replies
6/6qga: removing bios_supports_modeqga/commands-posix.c+18 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] QGA: systemd hibernate/suspend/hybrid-sleep

changes in v2 from Marc-Andre Lureau review:
- use error_free() accordingly
- use g_spawn_sync() instead of fork() in run_process_child()
- previous version link:
https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg05499.html

This series adds systemd suspend support for QGA. Some newer guests don't have pmutils anymore, leaving us with just the Linux state file mechanism to suspend the guest OS, which does not support hybrid-sleep. With this implementation, QGA is now able to hybrid suspend newer guests again.

Most of the patches are cleanups in the existing suspend code, aiming at both simplifying it and making it easier to extend it with systemd.

Daniel Henrique Barboza (6):
qga: refactoring qmp_guest_suspend_* functions
qga: bios_supports_mode: decoupling pm-utils and sys logic
qga: guest_suspend: decoupling pm-utils and sys logic
qga: removing switch statements, adding run_process_child
qga: systemd hibernate/suspend/hybrid-sleep support
qga: removing bios_supports_mode

 qga/commands-posix.c | 316 ++++++++++++++++++++++++++++---------------
 1 file changed, 208 insertions(+), 108 deletions(-)
Signature · 1 line
2.17.1