qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] compare machine type compat_props
@ 2022-11-03 10:27 Maksim Davydov
  2022-11-03 10:27 ` [PATCH v3 1/4] qom: add default value Maksim Davydov
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Maksim Davydov @ 2022-11-03 10:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: davydov-max, vsementsov, eduardo, marcel.apfelbaum, philmd,
	wangyanan55, jsnow, crosa, bleal, eblake, armbru, pbonzini,
	berrange, alxndr, bsd, stefanha, thuth, darren.kenny, Qiuhao.Li,
	lvivier

This script is necessary 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 in March.

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: add default value
  python/qmp: increase read buffer size
  qmp: add dump machine type compatible properties
  scripts: add script to compare compatible properties

 hw/core/machine-qmp-cmds.c    |  22 +-
 python/qemu/qmp/qmp_client.py |   4 +-
 qapi/machine.json             |  54 ++++-
 qom/qom-qmp-cmds.c            |   2 +
 scripts/compare_mt.py         | 440 ++++++++++++++++++++++++++++++++++
 tests/qtest/fuzz/qos_fuzz.c   |   2 +-
 6 files changed, 518 insertions(+), 6 deletions(-)
 create mode 100755 scripts/compare_mt.py

-- 
2.25.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-11-17 20:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-03 10:27 [PATCH v3 0/4] compare machine type compat_props Maksim Davydov
2022-11-03 10:27 ` [PATCH v3 1/4] qom: add default value Maksim Davydov
2022-11-03 10:27 ` [PATCH v3 2/4] python/qmp: increase read buffer size Maksim Davydov
2022-11-08 20:38   ` John Snow
2022-11-09  9:39     ` Daniel P. Berrangé
2022-11-09 10:59       ` Daniel P. Berrangé
2022-11-09 17:53         ` John Snow
2022-11-03 10:27 ` [PATCH v3 3/4] qmp: add dump machine type compatible properties Maksim Davydov
2022-11-03 10:27 ` [PATCH v3 4/4] scripts: add script to compare " Maksim Davydov
2022-11-08 15:37   ` Vladimir Sementsov-Ogievskiy
2022-11-08 17:48     ` Maksim Davydov
2022-11-08 21:16   ` John Snow
2022-11-17 20:34     ` Maksim Davydov

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).