]> xenbits.xensource.com Git - libvirt.git/commit
qemu-replies-tool: Dump 'device-list-properties'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jan 2024 12:22:34 +0000 (13:22 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 1 Feb 2024 09:55:01 +0000 (10:55 +0100)
commit610f1300c5f55a99f5eb2dd74a20abe29d6e862a
treed0c5aca225b3262dee298a65824af61b2947604b
parent910e25afa3185dcf8d7d9e8df0ea0a0eb46f03bc
qemu-replies-tool: Dump 'device-list-properties'

The order of properties in 'device-list-properties' can hange
arbitrarily and git is not great at picking the contexts in JSON to help
seeing what changed.

The new --dump-device-list-properties produces a stable order of
properties and dumps also the type and default value mainly useful for
comparing two .replies files.

Example output:

$ ./scripts/qemu-replies-tool.py tests/qemucapabilitiesdata/caps_9.0.0_x86_64.replies --dump-device-list-properties
(dev) ICH9-LPC acpi-index uint32 (0)
(dev) ICH9-LPC acpi-pci-hotplug-with-bridge-support bool
(dev) ICH9-LPC acpi_disable_cmd uint8
(dev) ICH9-LPC acpi_enable_cmd uint8
(dev) ICH9-LPC addr int32 (-1)
(dev) ICH9-LPC cpu-hotplug-legacy bool
(dev) ICH9-LPC disable_s3 uint8
(dev) ICH9-LPC disable_s4 uint8

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
scripts/qemu-replies-tool.py