[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display ac
From: |
Michael Mueller |
Subject: |
[Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display accelerator id and model name |
Date: |
Mon, 27 Apr 2015 16:53:18 +0200 |
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 <address@hidden>
Acked-by: Christian Borntraeger <address@hidden>
---
hmp.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hmp.c b/hmp.c
index f142d36..676d821 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
- [Qemu-devel] [PATCH v6 00/17] s390 cpu model implementation, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 02/17] Add accelerator id and model name to CPUState, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display accelerator id and model name,
Michael Mueller <=
- [Qemu-devel] [PATCH v6 03/17] Extend QMP command query-cpus to return accelerator id and model name, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 01/17] Introduce stub routine cpu_desc_avail, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 05/17] Add optional parameters to QMP command query-cpu-definitions, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 06/17] target-s390x: Introduce S390 CPU facilities, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 09/17] target-s390x: Define S390 CPU model specific facility lists, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 08/17] target-s390x: Introduce S390 CPU models, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 07/17] target-s390x: Generate facility defines per S390 CPU model, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 10/17] target-s390x: Add S390 CPU model alias definition routines, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models, Michael Mueller, 2015/04/27
- [Qemu-devel] [PATCH v6 14/17] target-s390x: Initialize S390 CPU model name in CPUState, Michael Mueller, 2015/04/27