diff options
author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2018-06-21 07:21:52 -0300 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2018-07-03 15:20:51 -0500 |
commit | 067927d62e097a8a3624a926e792756ce7a353ed (patch) | |
tree | bff66bf64b5116b77fa43f7cf319dd53dcdc1a7d /bootdevice.c | |
parent | 8b020b5eb708091e723518907184e609350f6d41 (diff) | |
download | qemu-067927d62e097a8a3624a926e792756ce7a353ed.zip |
qga: systemd hibernate/suspend/hybrid-sleep support
pmutils isn't being supported by newer OSes like Fedora 27
or Mint. This means that the only suspend option QGA offers
for these guests are writing directly into the Linux sys state
file. This also means that QGA also loses the ability to do
hybrid suspend in those guests - this suspend mode is only
available when using pmutils.
Newer guests can use systemd facilities to do all the suspend
types QGA supports. The mapping in comparison with pmutils is:
- pm-hibernate -> systemctl hibernate
- pm-suspend -> systemctl suspend
- pm-suspend-hybrid -> systemctl hybrid-sleep
To discover whether systemd supports these functions, we inspect
the status of the services that implements them.
With this patch, we can offer hybrid suspend again for newer
guests that do not have pmutils support anymore.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'bootdevice.c')
0 files changed, 0 insertions, 0 deletions