aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-15 10:53:49 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-15 19:28:36 +0200
commit6ca2eba6d3decff61a725c379876e18869521a5d (patch)
tree49852328e73cd1090b8c95f68d087978bb1c5325 /hw/core
parent18da42ee4273a66f240bcca7aa4d8ce3b97b1a77 (diff)
downloadqemu-6ca2eba6d3decff61a725c379876e18869521a5d.zip
qemu-6ca2eba6d3decff61a725c379876e18869521a5d.tar.gz
qemu-6ca2eba6d3decff61a725c379876e18869521a5d.tar.bz2
qapi/machine: Add @qom-type field to CpuInfoFast structure
Knowing the QOM type name of a CPU can be useful, in particular to infer its model name. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Message-Id: <20250715090624.52377-2-philmd@linaro.org>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/machine-qmp-cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine-qmp-cmds.c b/hw/core/machine-qmp-cmds.c
index 1af0f29..b9e7eb6 100644
--- a/hw/core/machine-qmp-cmds.c
+++ b/hw/core/machine-qmp-cmds.c
@@ -48,6 +48,7 @@ CpuInfoFastList *qmp_query_cpus_fast(Error **errp)
value->cpu_index = cpu->cpu_index;
value->qom_path = object_get_canonical_path(OBJECT(cpu));
value->thread_id = cpu->thread_id;
+ value->qom_type = g_strdup(object_get_typename(OBJECT(cpu)));
if (mc->cpu_index_to_instance_props) {
CpuInstanceProperties *props;