From: Maksim Davydov <davydov-max@yandex-team.ru>
To: qemu-devel@nongnu.org
Cc: eduardo@habkost.net, marcel.apfelbaum@gmail.com,
philmd@linaro.org, wangyanan55@huawei.com, jsnow@redhat.com,
eblake@redhat.com, armbru@redhat.com, pbonzini@redhat.com,
berrange@redhat.com, alxndr@bu.edu, davydov-max@yandex-team.ru,
vsementsov@yandex-team.ru, alexander.ivanov@virtuozzo.com,
den@virtuozzo.com, michael.labiuk@virtuozzo.com
Subject: [PATCH v8 0/4] compare machine type compat_props
Date: Thu, 25 Jan 2024 14:56:06 +0300 [thread overview]
Message-ID: <20240125115610.23697-1-davydov-max@yandex-team.ru> (raw)
This script can be used to choose the best machine type in the
appropriate cases. Also we have to check compat_props of the old MT
after changes to be sure that they haven't broken old the MT. For
example, pc_compat_3_1 of pc-q35-3.1 has Icelake-Client which was
removed.
v8 -> v7:
* rebase
* fix encoding
v7 -> v6:
* minor fixes
v6 -> v5:
* add ability to compare different QEMU binaries
* replace abstract drivers by its implementations
* improve human-readable format
* code refactoring
v5 -> v4:
* minor fixes
v4 -> v3:
* increase read buffer limit to limit value in libvirt
* add caching of qmp requests to speed up the script
v3 -> v2:
* simplify adding new methods for getting QEMU default values
* add typing
* change concept from fixed dictionaries to classes
v2 -> v1:
* fix script code style and descriptions
* reorder patches
v1 -> previous iteration:
* new default value print concept
* QEMU python library is used to collect qmp data
* remove auxiliary patches (that was used to fix `->get` sematics)
* print compat_props in the correct order
* delete `absract` field to reduce output JSON size
Maksim Davydov (4):
qom: qom-list-properties: add default value
qmp: add dump machine type compatibility properties
python/qemu/machine: add method to retrieve QEMUMachine::binary field
scripts: add script to compare compatibility properties
hw/core/machine-qmp-cmds.c | 23 +-
python/qemu/machine/machine.py | 5 +
qapi/machine.json | 64 +++-
qom/qom-qmp-cmds.c | 1 +
scripts/compare-machine-types.py | 486 +++++++++++++++++++++++++++++++
tests/qtest/fuzz/qos_fuzz.c | 2 +-
6 files changed, 577 insertions(+), 4 deletions(-)
create mode 100755 scripts/compare-machine-types.py
--
2.34.1
next reply other threads:[~2024-01-25 11:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-25 11:56 Maksim Davydov [this message]
2024-01-25 11:56 ` [PATCH v8 1/4] qom: qom-list-properties: add default value Maksim Davydov
2024-01-25 11:56 ` [PATCH v8 2/4] qmp: add dump machine type compatibility properties Maksim Davydov
2024-02-19 14:10 ` Markus Armbruster
2024-01-25 11:56 ` [PATCH v8 3/4] python/qemu/machine: add method to retrieve QEMUMachine::binary field Maksim Davydov
2024-01-25 11:56 ` [PATCH v8 4/4] scripts: add script to compare compatibility properties Maksim Davydov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240125115610.23697-1-davydov-max@yandex-team.ru \
--to=davydov-max@yandex-team.ru \
--cc=alexander.ivanov@virtuozzo.com \
--cc=alxndr@bu.edu \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=den@virtuozzo.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=jsnow@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=michael.labiuk@virtuozzo.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
--cc=wangyanan55@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).