Hi Yonggang,

On 9/22/26 2:55 PM, Yonggang Luo wrote:
- Add machine_class_set_name() so boards can keep a stable -M name
   when the QOM type is uniquified. 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 MachineClass::name so order matches the printed names
   when QOM types are prefixed (arm-virt-11.1-machine vs virt-11.1).

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
---
  hw/core/machine.c        |  6 ++++++
  include/hw/core/boards.h | 12 +++++++++++-
  system/vl.c              |  8 +++-----
  3 files changed, 20 insertions(+), 6 deletions(-)


this indeed allows QOM types to coexist in same binary.
In such binary, how are we now supposed to differentiate two virt machines from -M <name>, given they both have same alias name?

Regards,
Pierrick

Reply via email to