Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932362AbbDMN5S (ORCPT ); Mon, 13 Apr 2015 09:57:18 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:32950 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754025AbbDMN5F (ORCPT ); Mon, 13 Apr 2015 09:57:05 -0400 From: Michael Mueller To: qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Eduardo Habkost , Gleb Natapov , Alexander Graf , Christian Borntraeger , "Jason J. Herne" , Cornelia Huck , Paolo Bonzini , Michael Mueller , Andreas Faerber , Richard Henderson , Daniel Hansel Subject: [PATCH v5 04/17] Extend HMP command info cpus to display accelerator id and model name Date: Mon, 13 Apr 2015 15:56:23 +0200 Message-Id: <1428933396-37887-5-git-send-email-mimu@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1428933396-37887-1-git-send-email-mimu@linux.vnet.ibm.com> References: <1428933396-37887-1-git-send-email-mimu@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15041313-0025-0000-0000-000004B135D2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 37 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/