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

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.

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: add default value
  qmp: add dump machine type compatible properties
  python: add binary
  scripts: add script to compare compatible properties

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

-- 
2.34.1



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

end of thread, other threads:[~2024-01-08 23:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-08 15:38 [PATCH v6 0/4] compare machine type compat_props Maksim Davydov
2023-11-08 15:38 ` [PATCH v6 1/4] qom: add default value Maksim Davydov
2023-11-08 17:58   ` Philippe Mathieu-Daudé
2023-12-01  9:30   ` Markus Armbruster
2023-11-08 15:38 ` [PATCH v6 2/4] qmp: add dump machine type compatible properties Maksim Davydov
2023-12-01  9:49   ` Markus Armbruster
2023-12-13 14:46     ` Maksim Davydov
2023-12-18 13:18       ` Markus Armbruster
2023-11-08 15:38 ` [PATCH v6 3/4] python: add binary Maksim Davydov
2023-11-08 17:57   ` Philippe Mathieu-Daudé
2023-11-09 21:49   ` John Snow
2023-11-10  7:03   ` Philippe Mathieu-Daudé
2023-11-14 10:54     ` Maksim Davydov
2023-11-08 15:38 ` [PATCH v6 4/4] scripts: add script to compare compatible properties Maksim Davydov
2023-12-01  9:51   ` Markus Armbruster
2023-12-13 14:48     ` Maksim Davydov
2023-12-18 13:19       ` Markus Armbruster
2024-01-08 23:43         ` John Snow
2023-12-01 11:04 ` [PATCH v6 0/4] compare machine type compat_props Philippe Mathieu-Daudé
2023-12-01 13:00   ` Markus Armbruster

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