Stop illustrating setting 'alias' in the MachineClass and instead show setting 'aliases' in the AliasedClass.
Signed-off-by: Daniel P. Berrangé <[email protected]> --- include/hw/core/boards.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/hw/core/boards.h b/include/hw/core/boards.h index a25c627c0c8..ea1e26a8c52 100644 --- a/include/hw/core/boards.h +++ b/include/hw/core/boards.h @@ -490,10 +490,20 @@ struct MachineState { * Following this, one (or more) helpers can be added for * whichever scenarios need to be catered for with a machine: * + * + * #define DEFINE_VIRT_MACHINE_ALIASES_LATEST(...) \ + * AliasedClass *alc = ALIASED_CLASS(oc); \ + * static const char *const MACHINE_VER_SYM(aliases, virt, __VA_ARGS__)[] = \ + * { \ + * MACHINE_TYPE_NAME("virt"), \ + * NULL, \ + * }; \ + * alc->aliases = MACHINE_VER_SYM(aliases, virt, __VA_ARGS__) + * * // Normal 2 digit, marked as latest e.g. 'virt-9.0' * #define DEFINE_VIRT_MACHINE_LATEST(major, minor) \ * DEFINE_VIRT_MACHINE_IMPL({ \ - * mc->alias = "virt"; \ + * DEFINE_VIRT_MACHINE_ALIASES_LATEST(major, minor); \ * }, major, minor) * * // Normal 2 digit e.g. 'virt-9.0' -- 2.56.1
