lkml.org 
[lkml]   [2015]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v5 04/17] Extend HMP command info cpus to display accelerator id and model name
Date
The HMP command info cpus now displays the CPU model name and the
backing accelerator if part of the CPUState.

(qemu) info cpus
* CPU #0: (halted) model=2827-ga2 accel=kvm thread_id=1679

Signed-off-by: Michael Mueller <mimu@linux.vnet.ibm.com>
---
hmp.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/hmp.c b/hmp.c
index f31ae27..70238332 100644
--- a/hmp.c
+++ b/hmp.c
@@ -290,6 +290,13 @@ void hmp_info_cpus(Monitor *mon, const QDict *qdict)
monitor_printf(mon, " (halted)");
}

+ if (cpu->value->has_model) {
+ monitor_printf(mon, " model=%s", cpu->value->model);
+ }
+ if (cpu->value->has_accel) {
+ monitor_printf(mon, " accel=%s", AccelId_lookup[cpu->value->accel]);
+ }
+
monitor_printf(mon, " thread_id=%" PRId64 "\n", cpu->value->thread_id);
}

--
1.8.3.1


\
 
 \ /
  Last update: 2015-04-13 16:21    [W:0.152 / U:3.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site