On Sat, Sep 26, 2026 at 04:15:49PM +0800, Yonggang Luo wrote:
> Date: Sat, 26 Sep 2026 16:15:49 +0800
> From: Yonggang Luo <[email protected]>
> Subject: [PATCH v3 09/10] qapi: return MachineInfo typename from
>  query-machines
> X-Mailer: git-send-email 2.52.0.windows.1
> 
> query-machines returned only the -M name, so management apps inferred
> the QOM type as that name plus "-machine". A prefixed type such as
> arm-virt-11.1-machine no longer matches -M virt-11.1. Return the QOM
> type in MachineInfo typename from object_class_get_name() in
> qmp_query_machines(). test_query_machines_typename checks that
> qom-list-properties accepts it.
> 
> Signed-off-by: Yonggang Luo <[email protected]>
> Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
> Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
> ---
>  hw/core/machine-qmp-cmds.c |  1 +
>  qapi/machine.json          |  6 +++-
>  tests/qtest/qom-test.c     | 65 ++++++++++++++++++++++++++++++++++----
>  3 files changed, 65 insertions(+), 7 deletions(-)

Reviewed-by: Zhao Liu <[email protected]>


Reply via email to