summaryrefslogtreecommitdiffstats
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-03-15 12:26:31 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-16 17:11:07 -0300
commitdc7a09cfe47679d89289101cc9eb387c45e48fe7 (patch)
treeb55b3021443336fdb313dc41efe287355e3f21ea /qmp-commands.hx
parentf2574737f6a1218b4f4809ad6c8aba935126d90f (diff)
downloadhqemu-dc7a09cfe47679d89289101cc9eb387c45e48fe7.zip
hqemu-dc7a09cfe47679d89289101cc9eb387c45e48fe7.tar.gz
Expose thread_id in info cpus
Based on patch by Glauber Costa: To allow management applications like libvirt to apply CPU affinities to the VCPU threads, expose their ID via info cpus. This patch provides the pre-existing and used interface from qemu-kvm. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r--qmp-commands.hx3
1 files changed, 3 insertions, 0 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index df40a3d..1f72a8d 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -1194,6 +1194,7 @@ Return a json-array. Each CPU is represented by a json-object, which contains:
"nip": PPC (json-int)
"pc" and "npc": sparc (json-int)
"PC": mips (json-int)
+- "thread_id": ID of the underlying host thread (json-int)
Example:
@@ -1205,12 +1206,14 @@ Example:
"current":true,
"halted":false,
"pc":3227107138
+ "thread_id":3134
},
{
"CPU":1,
"current":false,
"halted":true,
"pc":7108165
+ "thread_id":3135
}
]
}
OpenPOWER on IntegriCloud