qga: move linux disk/cpu stats command impls to commands-linux.c
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 12 Jul 2024 13:24:42 +0000 (14:24 +0100)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Fri, 19 Jul 2024 08:50:35 +0000 (11:50 +0300)
commit74cbd9bcefb1781648cf593597018a05199d8ced
tree1106b87a0765439d35dbd79e9c82bf13ee04f28d
parent329cefe405e0b4e1e7a97ef84734dac82668a2d0
qga: move linux disk/cpu stats command impls to commands-linux.c

The qmp_guest_{diskstats,cpustats} command impls in
commands-posix.c are surrounded by '#ifdef __linux__' so should
instead live in commands-linux.c

This also removes a "#ifdef CONFIG_LINUX" that was nested inside
a "#ifdef __linux__".

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