From nobody Wed Nov 12 03:45:53 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1568299191; cv=none; d=zoho.com; s=zohoarc; b=ZHzRfIT3yI/NnfJE3AtvrQNMpWGbbm3iPfGW9109L+Hw9SQa2FKq7K4OyL4oT99ljPL3REON6TFsY+O5er0mMME50CXU85hUAi3NcUJDj6apDT5pcFzIZe2d7Igu7w1bt4xvq9x4zndF7/cCZwLTQUV8HRtWoHsAD+Vb1H2Fvs4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568299191; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=Zl52TpGfU4jphjTWFAVVRjXR0cF2IS3THvGFvP5wZRU=; b=GaM/O9mt9Aw6yGGve/F2RAmAFjEqgzwYfxY9SEg0jN2KI28fwDOrYRfU74RlezlIHFPvR0/jypVYBcaVKrl4V3FrIbx/dyKUcSJrRvau2jKpixbn+VZ3Bd0L8lZZ8rdzgB6RyBll51R67FG3KIOqdMZj2srHcPXCl++HUpDxeOA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1568299191084307.57533171770103; Thu, 12 Sep 2019 07:39:51 -0700 (PDT) Received: from localhost ([::1]:35316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8QG1-0001Dg-EO for importer@patchew.org; Thu, 12 Sep 2019 10:39:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47293) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i8Q72-0001yj-Ba for qemu-devel@nongnu.org; Thu, 12 Sep 2019 10:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i8Q70-00036u-U2 for qemu-devel@nongnu.org; Thu, 12 Sep 2019 10:30:19 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:32212 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i8Q70-00035V-Kr for qemu-devel@nongnu.org; Thu, 12 Sep 2019 10:30:18 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x8CENNvc147155 for ; Thu, 12 Sep 2019 10:30:14 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2uyp91mcs4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Sep 2019 10:30:14 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Sep 2019 15:30:13 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 12 Sep 2019 15:30:11 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x8CEUABO23265450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Sep 2019 14:30:10 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D507A404D; Thu, 12 Sep 2019 14:30:10 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1540CA405E; Thu, 12 Sep 2019 14:30:10 +0000 (GMT) Received: from bahia.tls.ibm.com (unknown [9.101.4.41]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 12 Sep 2019 14:30:10 +0000 (GMT) From: Greg Kurz To: David Gibson Date: Thu, 12 Sep 2019 16:30:09 +0200 User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 x-cbid: 19091214-0016-0000-0000-000002AA7399 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19091214-0017-0000-0000-0000330B05AE Message-Id: <156829860985.2073005.5893493824873412773.stgit@bahia.tls.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-09-12_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=865 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1909120150 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.158.5 Subject: [Qemu-devel] [PATCH] spapr: Report kvm_irqchip_in_kernel() in 'info pic' X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9dric?= Le Goater , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Unless the machine was started with kernel-irqchip=3Don, we cannot easily tell if we're actually using an in-kernel or an emulated irqchip. This information is important enough that it is worth printing it in 'info pic'. Signed-off-by: Greg Kurz Reviewed-by: C=C3=A9dric Le Goater --- hw/ppc/spapr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 761f8214c312..348c007ffbd3 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -81,6 +81,8 @@ #include "hw/mem/memory-device.h" #include "hw/ppc/spapr_tpm_proxy.h" =20 +#include "monitor/monitor.h" + #include =20 /* SLOF memory layout: @@ -4360,6 +4362,8 @@ static void spapr_pic_print_info(InterruptStatsProvid= er *obj, SpaprMachineState *spapr =3D SPAPR_MACHINE(obj); =20 spapr->irq->print_info(spapr, mon); + monitor_printf(mon, "irqchip: %s\n", + kvm_irqchip_in_kernel() ? "in-kernel" : "emulated"); } =20 int spapr_get_vcpu_id(PowerPCCPU *cpu)