summaryrefslogtreecommitdiff
path: root/cpus.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-05-08 16:04:22 -0300
committerMarkus Armbruster <armbru@redhat.com>2015-05-14 17:25:46 +0200
commit58f88d4b7e9e5578b8dd2c5acfe555b85b35af88 (patch)
tree80626062506fc7d5b9dba8516f545f18489643bf /cpus.c
parent1eeace9c237a729d11c7acd7c0338ab4562af637 (diff)
qmp: Add qom_path field to query-cpus command
This will allow clients to query additional information directly using qom-get on the CPU objects. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'cpus.c')
-rw-r--r--cpus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpus.c b/cpus.c
index 62d157a85c..de6469fa8d 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1435,6 +1435,7 @@ CpuInfoList *qmp_query_cpus(Error **errp)
info->value->CPU = cpu->cpu_index;
info->value->current = (cpu == first_cpu);
info->value->halted = cpu->halted;
+ info->value->qom_path = object_get_canonical_path(OBJECT(cpu));
info->value->thread_id = cpu->thread_id;
#if defined(TARGET_I386)
info->value->has_pc = true;