qga: move linux suspend command impls to commands-linux.c
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 12 Jul 2024 13:24:40 +0000 (14:24 +0100)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Fri, 19 Jul 2024 08:50:35 +0000 (11:50 +0300)
commit0c6f8824faa70d0782ce8b6a59d500bbd95acf64
tree2a36c06dc828db6cfc340c5e24c177d18b37f855
parent4210027b5002e66a308d7c52b2e3204438c363cd
qga: move linux suspend command impls to commands-linux.c

The qmp_guest_suspend_{disk,ram,hybrid} command impls in
commands-posix.c are surrounded by '#ifdef __linux__' so should
instead live in commands-linux.c

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240712132459.3974109-4-berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands-linux.c
qga/commands-posix.c