qmp: add dump machine type compatibility properties
commit236e9397b320518372a67c55777193c032b93d89
authorMaksim Davydov <davydov-max@yandex-team.ru>
Mon, 18 Mar 2024 21:35:48 +0000 (19 00:35 +0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 25 Apr 2024 08:12:40 +0000 (25 10:12 +0200)
tree234c335dcde3537e6a5b84cf52bf3be89416435b
parent443df40cad0f5de602ac6f6ca1559e0923e180b3
qmp: add dump machine type compatibility properties

To control that creating new machine type doesn't affect the previous
types (their compat_props) and to check complex compat_props inheritance
we need qmp command to print machine type compatibility properties.
This patch adds the ability to get list of all the compat_props of the
corresponding supported machines for their comparison via new optional
argument of "query-machines" command. Since information on compatibility
properties can increase the command output by a factor of 40, add an
argument to enable it, default off.

Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240318213550.155573-3-davydov-max@yandex-team.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/core/machine-qmp-cmds.c
qapi/machine.json
tests/qtest/fuzz/qos_fuzz.c