All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] machine: uniquify virt QOM names
@ 2026-09-18  0:06 Yonggang Luo
  2026-09-18  0:06 ` [PATCH 1/8] machine: allow -M name to differ from QOM type Yonggang Luo
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Yonggang Luo @ 2026-09-18  0:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: Xianglai Li, Weiwei Li, Alistair Francis, Stafford Horne,
	qemu-riscv, qemu-arm, Jiaxun Yang, Zhao Liu, Brian Cain,
	Laurent Vivier, Peter Maydell, Pierrick Bouvier, Paolo Bonzini,
	Song Gao, Daniel Henrique Barboza, Bibo Mao, Chao Liu,
	Palmer Dabbelt, Philippe Mathieu-Daude,
	Philippe Mathieu-Daudé, Liu Zhiwei, Max Filippov

Multiple targets register a virt board as MACHINE_TYPE_NAME("virt").
Those QOM types collide if more than one board is linked into one
qemu-system process. This series splits the QOM type from the -M name
so each virt board can keep a unique type while -M virt, help, and
migration stay the same.

- Add machine_class_set_name() so boards can set MachineClass::name
  when it must differ from the QOM type. machine_class_base_init still
  defaults the name to the QOM type without -machine. Document that
  MachineClass::name is the -M name, not the QOM type. Sort -M help
  by that name so order matches the printed names after types are
  prefixed (arm-virt-11.1-machine vs virt-11.1).
- Give each colliding virt board a unique QOM type and keep the
  existing -M name via machine_class_set_name(): riscv-virt, arm-virt,
  or1k-virt, hexagon-virt, loongarch-virt, m68k-virt, and xtensa-virt.
  Versioned ARM, LoongArch, and M68K boards keep virt-<ver>. Latest
  ARM virt still sets mc->alias to virt.

Yonggang Luo (8):
  machine: allow -M name to differ from QOM type
  hw/riscv/virt: use unique QOM name
  hw/arm/virt: use unique QOM name
  hw/or1k/virt: use unique QOM name
  hw/hexagon/virt: use unique QOM name
  hw/loongarch/virt: use unique QOM name
  hw/m68k/virt: use unique QOM name
  hw/xtensa/virt: use unique QOM name

 hw/arm/virt.c               |  3 ++-
 hw/core/machine.c           |  6 ++++++
 hw/hexagon/virt.c           |  1 +
 hw/loongarch/virt.c         |  3 ++-
 hw/m68k/virt.c              |  7 ++++---
 hw/or1k/virt.c              |  3 ++-
 hw/riscv/virt.c             |  3 ++-
 hw/xtensa/virt.c            |  3 ++-
 include/hw/arm/virt.h       |  2 +-
 include/hw/core/boards.h    | 12 +++++++++++-
 include/hw/hexagon/virt.h   |  2 +-
 include/hw/loongarch/virt.h |  2 +-
 include/hw/riscv/virt.h     |  2 +-
 system/vl.c                 |  8 +++-----
 14 files changed, 39 insertions(+), 18 deletions(-)

-- 
2.52.0.windows.1



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

end of thread, other threads:[~2026-09-21 14:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18  0:06 [PATCH 0/8] machine: uniquify virt QOM names Yonggang Luo
2026-09-18  0:06 ` [PATCH 1/8] machine: allow -M name to differ from QOM type Yonggang Luo
2026-09-21 14:19   ` Daniel P. Berrangé
2026-09-21 14:50     ` Daniel P. Berrangé
2026-09-18  0:06 ` [PATCH 2/8] hw/riscv/virt: use unique QOM name Yonggang Luo
2026-09-18  0:06 ` [PATCH 3/8] hw/arm/virt: " Yonggang Luo
2026-09-18  0:06 ` [PATCH 4/8] hw/or1k/virt: " Yonggang Luo
2026-09-18  0:06 ` [PATCH 5/8] hw/hexagon/virt: " Yonggang Luo
2026-09-18  3:26   ` Brian Cain
2026-09-18  0:06 ` [PATCH 6/8] hw/loongarch/virt: " Yonggang Luo
2026-09-18  0:06 ` [PATCH 7/8] hw/m68k/virt: " Yonggang Luo
2026-09-18  0:06 ` [PATCH 8/8] hw/xtensa/virt: " Yonggang Luo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.