On 11/12/2026 5:30 AM, Daniel P. Berrangé wrote:
> When outputting machines for '-machine help', the machine classes
> are sorted by name, but aliases, are always printed immediately
> before the machine name.
> 
> Mostly the aliases share the same name prefix as the main machine
> so this does not look odd, other than 'q35' appearing in the
> middle of a list of machines with 'pc-q35' prefix.
> 
> With the forthcoming patches to rename the 'virt' machine classes
> to have unique names across all targets, the positioning of aliases
> in the output list looks much odder.
> 
> Change to fully alphabetically sort the '-machine help' output
> so aliases are subject to the sorting alongside machines.
> 
> Signed-off-by: Daniel P. Berrangé <[email protected]>
> ---
>  system/vl.c | 41 ++++++++++++++++++++++++++---------------
>  1 file changed, 26 insertions(+), 15 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to