From patchwork Mon Jun 10 06:35:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 802999 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1802671wro; Sun, 9 Jun 2024 23:36:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWZ1R/K+r8BBzaVv15x0BbLJ5m4upQXsUtRuutMssnunyPD4MbusPjcLV8JQKPzBHsEfFLh9XIvTjqyLY6cA1yt X-Google-Smtp-Source: AGHT+IGJAiNFi71icmWV4Ws0EXHoiDtL+SxjKyevQQ6PplfA5I4boalIm1Hu8mSna7YJLrhZocyU X-Received: by 2002:a05:622a:1ba4:b0:440:dd8b:50a with SMTP id d75a77b69052e-440dd8b0869mr42174151cf.2.1718001380841; Sun, 09 Jun 2024 23:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718001380; cv=none; d=google.com; s=arc-20160816; b=bOvcB6nMafPbaDSd6g6U86yiDjD0FOntBiyPpshEiRaW5PrteJFFEF7JHgeRlr15EF c6y21cvs1gMEt00qEbs348n9jVa2W55xVyZcVpYHlqgzWt9q+6w+9+JbTXGHmfwobKY5 ykScjGMKaKtTHmb0E+ISxhGT0wCrrUdyJED9HdlqTDe9Cpmjd5VggeDjy4Gv25yk6p7t cEIzdJwfiLBfMrMZvdwWD1+Qu8VS6ai8XARFMVn7fwn7mH+L8kiaIJPAlCO9h3lR2DPh lbzmZUXWUor6bwoaTWoH2FqhGGogn0Gdnmiy6RlNr0NatH2MZtCpHobWjFudSnusZUdE duUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=nfSilvdfrEKWoWt9H1THfJIQcnGzklXjLBwkyIQq6ws=; fh=RzDfCbLI6MPAtLMPqlQnErdUHwLOMip/ff3zpjxflbg=; b=AdwwLKioe7GWKaqZ1+ntILuPbzjNDpYO5QvyIR6AGZipbnp+J0I4iWq6nizT2uqYCy 8g2MYaK/ugOAcpWoRfsIcjs8E2lh3eSrzYMOlXIXMgCdnIKwCiqGEV5Z0PzTMgnzP43X 6UKkXTXh1lN9a3dna2l+PQDTgESwDqPavKE1xrdAWT2KrZ4OaAjJBWMHdjdZi3Ue/gdG Vy9WKxWKhSFhuckerdJR947VIvx9kC9CJQknWVw66CzqxE4hVeWd0SDxEV41pSw3Ii1p oBG76HB9ymEY3QHc3xFdXWkxfsXXni8reiHvEY68MZevAqG20ZzhyZdLmJut6Rk3I6OR vuKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KczG6KSc; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-44038b3c2bdsi99197491cf.467.2024.06.09.23.36.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Jun 2024 23:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KczG6KSc; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGYcp-0006GZ-K7; Mon, 10 Jun 2024 02:35:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGYco-0006Eq-4z for qemu-devel@nongnu.org; Mon, 10 Jun 2024 02:35:26 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGYcl-0007Hw-D4 for qemu-devel@nongnu.org; Mon, 10 Jun 2024 02:35:25 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-421798185f0so14895285e9.1 for ; Sun, 09 Jun 2024 23:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718001321; x=1718606121; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nfSilvdfrEKWoWt9H1THfJIQcnGzklXjLBwkyIQq6ws=; b=KczG6KScGO0C+EMA/Z0XZmMo+zorsO/Mh33Y/Q4dPg0Z4ypKSnMkNT0+Hk+FjnhC9s BZhnYrGAqn5hylRF1mvnXfMRs90eWSKB+SmstBivOu+6XS2YS0Q1ffL+tyK/D8umyaTK Qp4YmnPXUgtRZ4i3/BPjc5/hX7iU+1eCCr2Bjn6n3MOBejfX0AlCJ07VQZEzxxjCo70E CU7rcaQY6Gbbf83lBIZIiQXY/TYKfArwvjY/I6is0NmDh+rAP+loR34eoYYyhIdGZJeO BqL8nUOZmvNZ9P03DfnAqkhuTWMefMfN0WYWUj30NWiQPYZcpjgaYsrLm0MV0lvpeGxd es3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718001321; x=1718606121; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nfSilvdfrEKWoWt9H1THfJIQcnGzklXjLBwkyIQq6ws=; b=RP9HSMvPml0oEE23m+or7Y4+pmtK2990HI2yBVAtIHxjMGWa3a+KFMa8C0e0uZNZAs mQbUE1jEJIFIc62m6tsVJjHt0p1Q4Ef6ryCuss6/bHlluWKit8Vj4jUCdtepI5ie+RTo rteAPECWhKEmv4pKu6QX4QO+zkFzd76StszU2rLe5svD/JzObfcqueIeulazztvib0gB wtdCbcqo2602GfC0o3zkETVNfcD2RJ2AX3CP2BIFmTjT5yszJDEibP8LYXUQVLM18rTN DUxqod3A5+m2EF5NvWCJ9VRVSe0r39no5/q0LMnpSpQvKlSprgHCfBWQrtxOfw9HRxeI 8iCA== X-Gm-Message-State: AOJu0YxZEWoKBhbbVbknAOpnmFa2XpzZw7rkAO/QC9EddOOJXkZc/nY7 yeFuDeaOIa1lcpj3IlXYm1XqJUaJejM9L5Iw47Ai2WauaT1ZZwsfpuS7lkeKzN6H+tj4QfKx9P5 T X-Received: by 2002:a5d:6982:0:b0:35f:1dcb:724c with SMTP id ffacd0b85a97d-35f1dcb73c8mr2081415f8f.68.1718001321427; Sun, 09 Jun 2024 23:35:21 -0700 (PDT) Received: from m1x-phil.lan ([176.176.129.242]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fc12e0sm10178493f8f.100.2024.06.09.23.35.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 09 Jun 2024 23:35:20 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , "Dr. David Alan Gilbert" , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= , Mark Cave-Ayland , Harsh Prateek Bora , Eduardo Habkost , Marcel Apfelbaum , Paolo Bonzini , Laurent Vivier , David Gibson , =?utf-8?q?Daniel_P_=2E_Berrang?= =?utf-8?q?=C3=A9?= , Daniel Henrique Barboza , Eric Blake , Yanan Wang , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Nicholas Piggin , Don Porter , =?utf-8?b?RnLDqWTDqXJpYyBCYXJyYXQ=?= , qemu-ppc@nongnu.org, Markus Armbruster Subject: [PATCH 0/2] hw/intc: Introduce x-query-interrupt-controllers QMP command Date: Mon, 10 Jun 2024 08:35:15 +0200 Message-ID: <20240610063518.50680-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Continuing previous work from Daniel: https://lore.kernel.org/qemu-devel/20211028155457.967291-1-berrange@redhat.com/ - Prefer HumanReadableText over Monitor in hw/intc/ - Introduce x-query-interrupt-controllers QMP command See commits f2de406f29 ("docs/devel: document expectations for QAPI data modelling for QMP") and 3d312f417d ("docs/devel: document expectations for HMP commands in the future") for rationale. Based-on: <20240610062105.49848-1-philmd@linaro.org> Philippe Mathieu-Daudé (2): hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() hw/intc: Introduce x-query-interrupt-controllers QMP command qapi/machine.json | 17 ++++++++++++ include/hw/intc/intc.h | 2 +- hw/core/machine-qmp-cmds.c | 29 +++++++++++++++++++ hw/intc/goldfish_pic.c | 8 +++--- hw/intc/i8259_common.c | 14 +++++----- hw/intc/ioapic_common.c | 57 +++++++++++++++++++------------------- hw/intc/m68k_irqc.c | 5 ++-- hw/intc/slavio_intctl.c | 11 ++++---- hw/ppc/pnv.c | 10 +------ hw/ppc/spapr.c | 10 +------ monitor/hmp-cmds.c | 27 ------------------ hmp-commands-info.hx | 2 +- 12 files changed, 97 insertions(+), 95 deletions(-)