]> git.proxmox.com Git - mirror_qemu.git/commit
qga: refactoring qmp_guest_suspend_* functions
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 21 Jun 2018 10:21:48 +0000 (07:21 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 3 Jul 2018 20:20:51 +0000 (15:20 -0500)
commit304a0fcb397efba40dffded985a6539143cca82c
treece4191f4eb65656d2b5866cb9c2da98ffbd32a3d
parent743c71d03c20d64f2bae5fba6f26cdf5e4b1bda6
qga: refactoring qmp_guest_suspend_* functions

To be able to add new suspend mechanisms we need to detach
the existing QMP functions from the current implementation
specifics.

At this moment we have functions such as qmp_guest_suspend_ram
calling bios_suspend_mode and guest_suspend passing the
pmutils command and arguments as parameters. This patch
removes this logic from the QMP functions, moving them to
the respective functions that will have to deal with which
binary to use.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c