mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
443df40cad
commit
236e9397b3
3 changed files with 88 additions and 4 deletions
|
@ -46,7 +46,7 @@ static void qos_set_machines_devices_available(void)
|
|||
MachineInfoList *mach_info;
|
||||
ObjectTypeInfoList *type_info;
|
||||
|
||||
mach_info = qmp_query_machines(&error_abort);
|
||||
mach_info = qmp_query_machines(false, false, &error_abort);
|
||||
machines_apply_to_node(mach_info);
|
||||
qapi_free_MachineInfoList(mach_info);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue