Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2222170/?format=api
{ "id": 2222170, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2222170/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-17-philmd@linaro.org/", "project": { "id": 69, "url": "http://patchwork.ozlabs.org/api/1.1/projects/69/?format=api", "name": "QEMU powerpc development", "link_name": "qemu-ppc", "list_id": "qemu-ppc.nongnu.org", "list_email": "qemu-ppc@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260410195323.17937-17-philmd@linaro.org>", "date": "2026-04-10T19:53:10", "name": "[v2,16/27] monitor: Make 'info via' a generic command", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6c19c18393eecb35ceacb72cea76b23bea13328e", "submitter": { "id": 85046, "url": "http://patchwork.ozlabs.org/api/1.1/people/85046/?format=api", "name": "Philippe Mathieu-Daudé", "email": "philmd@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-ppc/patch/20260410195323.17937-17-philmd@linaro.org/mbox/", "series": [ { "id": 499497, "url": "http://patchwork.ozlabs.org/api/1.1/series/499497/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-ppc/list/?series=499497", "date": "2026-04-10T19:52:55", "name": "monitor: Remove need of per-target handlers", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/499497/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222170/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2222170/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=Id3b9VX4;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fsncf5YYXz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:56:34 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-ppc-bounces@nongnu.org>)\n\tid 1wBHws-0003Ql-EQ; Fri, 10 Apr 2026 15:55:26 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wBHwq-0003FB-OU\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:55:24 -0400", "from mail-wm1-x335.google.com ([2a00:1450:4864:20::335])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1wBHwo-0002Fr-OV\n for qemu-ppc@nongnu.org; Fri, 10 Apr 2026 15:55:24 -0400", "by mail-wm1-x335.google.com with SMTP id\n 5b1f17b1804b1-488b8bc6bc9so17414145e9.3\n for <qemu-ppc@nongnu.org>; Fri, 10 Apr 2026 12:55:22 -0700 (PDT)", "from localhost.localdomain (88-187-86-199.subs.proxad.net.\n [88.187.86.199]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488d5d80bafsm29705155e9.5.2026.04.10.12.55.20\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:55:20 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850921; x=1776455721; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=P7DYNcbBqYRxENhIeovRDLogIedruZzNw+qepAaR4ak=;\n b=Id3b9VX4uOXPzOej/emz/IrY9x5unFfcDQza2aKuaP4vSBqReIR/nmH8yG1bTZxt6B\n kJ0mMFbX4AC4RNbn3yUc4pKJp8S1BkpJMUacLq0J4u7I8v3/rOGjQUGZS5vrntOPuLT7\n YQEJ0q1XUo7mM/yyY0+szNeFIA3sMfqkcYVw3oI2cjDWyMMzYGx/C5c4tFeq1ZJBzIF6\n alnYhgYSDiYuq2DIAUWEfKKVLJto9pEGqEfUK19+j6C+vyan38Iembuh40+kQEvO2BmS\n w+FkTWK7Jp/vjb1Wp7zwVkb2rirDpZPvoDuU2iCjLW+qINTKjqtFjtEz++bSmYQlSeYc\n hUEg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850921; x=1776455721;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=P7DYNcbBqYRxENhIeovRDLogIedruZzNw+qepAaR4ak=;\n b=mI1LGSt001FSRhhKFvKIkF8tQ4IACMPHbX/PGZoa+jNeSVFU6XraQbocqKAsW4GI+M\n B4zV8MmUtz1t13JFWoBp/hGUHDSPpAJbAHZJDOxg3BA6YYcF0v5f4eHe466ielR01BHs\n 9TEIp3uM+2CWrjlcWTxe1o9sS0exvHP4jpayHCdptlzcMUbu8p07dMPTwhXMDakl6TRV\n 9tgRZ37a6m8al/qSrR7eYQrfS0WwwrBHAImZ+Onm0l9Zc6o9pXk4p5o7ntOIIT0In5xS\n 69NPKUCmY8W4cFDSWqe/aFH/Q3VwAjqLKE96rQFLzwpAMxLZMdlwpHY8UInXdxOVJtza\n Lffg==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCUiZIhmIvl3cmSuHVyAKKerypEYCqlNUzj+KdQTVmpdiop1PZ9brYPRRXiyXKrX1Pd+QKYegxBCcA==@nongnu.org", "X-Gm-Message-State": "AOJu0Yy01X604X3GLV0gpYC56jrBS24vAkytkoxrcF14fcmZNVqHZH++\n DuFksDcu3bdI9hAleFQRBVLu+ibhdRtQHjSQKwmWiu17PigE4aJ7KCgrCVQmd8bf0N4=", "X-Gm-Gg": "AeBDieu8MN8/iVZ1MNHT8wcdQECPIN+HM6HR6z1Cp7eq4vLp8psZYvB/4AJGlMDxeRJ\n kBeby0ApPEjp37mqMGS5jhP6ZD0Zs4sC9fVjZBucB7BsiVQtnA4/0sNN5Z04q7Q/UeUX13Q1ggo\n J4zu/bS52lqZCqWmuAuzAVvvjLCEPGOlOyWnvM8+Z34YEJIHeOuyTZQSDJXbdWlu2YweI9aGWQ9\n Rt5H+VEzn7pu+CFuqE/TMysIU8fXIjqL4RmbDm3lMQTwd5H4dczsSUNo0LrnpSSjx7qJx7irtSf\n XAa4CoUQ9wGqVwB5Wuill5VrTGnCCZzcWH1dOmkgD/52wp8Ee7NyhN8slcJeMuuBYSixKIKu+ZM\n K0d5xHHEiyQMrQEOcLpoUaoMkIR7rA3plYNstfl7IpsxoS7/5pUsKW82KwpNJuHq4LcKf2V3lpL\n fT8cAJnRHfUPRMY120aeGe0T8CTzrho/EANXfWvVUNX1ftQOcNsutDjhsr/mqSeQw/3XaD5T+Ga\n 2d4rRjlKN4=", "X-Received": "by 2002:a05:600c:4e4d:b0:485:3193:6ddb with SMTP id\n 5b1f17b1804b1-488d6808507mr60392295e9.3.1775850921143;\n Fri, 10 Apr 2026 12:55:21 -0700 (PDT)", "From": "=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "Richard Henderson <richard.henderson@linaro.org>,\n \"Dr. David Alan Gilbert\" <dave@treblig.org>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-riscv@nongnu.org,\n Markus Armbruster <armbru@redhat.com>, qemu-s390x@nongnu.org,\n kvm@vger.kernel.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?=\n\t=?utf-8?q?=C3=A9?= <philmd@linaro.org>,\n Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>", "Subject": "[PATCH v2 16/27] monitor: Make 'info via' a generic command", "Date": "Fri, 10 Apr 2026 21:53:10 +0200", "Message-ID": "<20260410195323.17937-17-philmd@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260410195323.17937-1-philmd@linaro.org>", "References": "<20260410195323.17937-1-philmd@linaro.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::335;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-ppc@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<qemu-ppc.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-ppc>", "List-Post": "<mailto:qemu-ppc@nongnu.org>", "List-Help": "<mailto:qemu-ppc-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-ppc>,\n <mailto:qemu-ppc-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "In order to build hmp-commands-info.hx once we need to stop\nusing device target-specific check. Use the generic pattern\nto make the command available on all targets, providing a\nstub with kind error message when the device is not available.\n\nSigned-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>\n---\n MAINTAINERS | 2 +-\n hw/misc/mos6522-stub.c | 16 ++++++++++++++++\n hmp-commands-info.hx | 2 --\n hw/misc/meson.build | 1 +\n 4 files changed, 18 insertions(+), 3 deletions(-)\n create mode 100644 hw/misc/mos6522-stub.c", "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex 932d6aee507..1810625eb1e 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1558,7 +1558,7 @@ F: hw/ppc/mac_newworld.c\n F: hw/pci-host/uninorth.c\n F: hw/pci-bridge/dec.[hc]\n F: hw/misc/macio/\n-F: hw/misc/mos6522.c\n+F: hw/misc/mos6522*.c\n F: hw/nvram/mac_nvram.c\n F: hw/ppc/fw_cfg.c\n F: hw/input/adb*\ndiff --git a/hw/misc/mos6522-stub.c b/hw/misc/mos6522-stub.c\nnew file mode 100644\nindex 00000000000..85eb0ee36ee\n--- /dev/null\n+++ b/hw/misc/mos6522-stub.c\n@@ -0,0 +1,16 @@\n+/*\n+ * QEMU MOS6522 VIA stubs\n+ *\n+ * Copyright (c) Linaro\n+ *\n+ * SPDX-License-Identifier: GPL-2.0-or-later\n+ */\n+\n+#include \"qemu/osdep.h\"\n+#include \"monitor/monitor.h\"\n+#include \"monitor/hmp.h\"\n+\n+void hmp_info_via(Monitor *mon, const QDict *qdict)\n+{\n+ monitor_printf(mon, \"MOS6522 VIA is not available in this QEMU\\n\");\n+}\ndiff --git a/hmp-commands-info.hx b/hmp-commands-info.hx\nindex 74c741f80e2..463038c302a 100644\n--- a/hmp-commands-info.hx\n+++ b/hmp-commands-info.hx\n@@ -885,7 +885,6 @@ SRST\n Show intel SGX information.\n ERST\n \n-#if defined(CONFIG_MOS6522)\n {\n .name = \"via\",\n .args_type = \"\",\n@@ -893,7 +892,6 @@ ERST\n .help = \"show guest mos6522 VIA devices\",\n .cmd = hmp_info_via,\n },\n-#endif\n \n SRST\n ``info via``\ndiff --git a/hw/misc/meson.build b/hw/misc/meson.build\nindex 245ab9b98cc..d7e97a4a32f 100644\n--- a/hw/misc/meson.build\n+++ b/hw/misc/meson.build\n@@ -20,6 +20,7 @@ system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_ras.c'))\n \n # Mac devices\n system_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))\n+stub_ss.add(files('mos6522-stub.c'))\n system_ss.add(when: 'CONFIG_DJMEMC', if_true: files('djmemc.c'))\n system_ss.add(when: 'CONFIG_IOSB', if_true: files('iosb.c'))\n \n", "prefixes": [ "v2", "16/27" ] }