Cover Letter Detail
Show a cover letter.
GET /api/1.1/covers/2222141/?format=api
{ "id": 2222141, "url": "http://patchwork.ozlabs.org/api/1.1/covers/2222141/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260410195323.17937-1-philmd@linaro.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260410195323.17937-1-philmd@linaro.org>", "date": "2026-04-10T19:52:54", "name": "[v2,00/27] monitor: Remove need of per-target handlers", "submitter": { "id": 85046, "url": "http://patchwork.ozlabs.org/api/1.1/people/85046/?format=api", "name": "Philippe Mathieu-Daudé", "email": "philmd@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260410195323.17937-1-philmd@linaro.org/mbox/", "series": [ { "id": 499498, "url": "http://patchwork.ozlabs.org/api/1.1/series/499498/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499498", "date": "2026-04-10T19:52:54", "name": "monitor: Remove need of per-target handlers", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/499498/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2222141/comments/", "headers": { "Return-Path": "<qemu-devel-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=k4FSiEr6;\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-devel-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 4fsnZm1S9kz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 05:54:56 +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-devel-bounces@nongnu.org>)\n\tid 1wBHv2-0008QJ-IF; Fri, 10 Apr 2026 15:53:32 -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 1wBHv1-0008PV-7c\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 15:53:31 -0400", "from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a])\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 1wBHuy-0000P8-P6\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 15:53:30 -0400", "by mail-wm1-x32a.google.com with SMTP id\n 5b1f17b1804b1-488a9033b2cso28729135e9.2\n for <qemu-devel@nongnu.org>; Fri, 10 Apr 2026 12:53:28 -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 ffacd0b85a97d-43d63e46a85sm9883266f8f.24.2026.04.10.12.53.24\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 12:53:24 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1775850807; x=1776455607; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=ZJ7qV7zH96OL2L71+arnff/3Q9xB19XbqUaejFBbdEI=;\n b=k4FSiEr6TQj5ox3SHwB7EjrRvrYgyo/6pf5QNHkht7rYnlvIqaZ06b+Jhqg/pD+nLc\n ULlUOM0+w9NMyF+eD8jbuk8dAXLIJyEQ71FOmE9UHWqqlW2sm1vRm3FMifyVf5nwRJDH\n mXZ5xB2qqleMYSJZD68iSuiObkJqtaWT5k5+exkI4G5WlfFllk5WImy638vddbq2jH0E\n cT45IAfbLIcAFq1IfmozWYw8LR2yqOiJk/5wFsklttY37Cgd/foPPxiOG1TpUuVKKh3r\n pP+zufMKrBaXdcdNy0nG0opah1O8/FhxzPEB678SeebomEGnzVVO+EkcrEbsqsBUGtvt\n Cu1Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775850807; x=1776455607;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=ZJ7qV7zH96OL2L71+arnff/3Q9xB19XbqUaejFBbdEI=;\n b=qpiGbiVSgdI5vRQWcWiW7sFoKD+bJisXoGhbnDO/cMgPJqplI78NB6ddMb7cDgEOfj\n 9HuERa2804YDMSstAQ8JywVtT45x0vMNG3mWuuF26Z/4KW2aEzs2W5IDUxVjRfdqnnNz\n wl0oKXzyGF8hLNnsF9ngMAQ99U0IQMOb8+Alk752y3TYh3KMnlWM8h8I71vH/5lXpSJO\n MLrAnjChVg+JYpCxw61L1KswGhiHZCGF8dMsi+OeqkY7r2+qTF7vl/8CVGpLJ1PAz/Fx\n 2rtpcNJQDfpO+SlqgFOUIecyYRPIoY0ee4gYxdk5rAFc79V9rO69y6aj8MN8UTnWNwOf\n 8N9g==", "X-Gm-Message-State": "AOJu0Yy/kT5vGHzGxRsRqPsWoe0tVBUyUP0CCAfCHHuqkY9oycdij9w7\n bDKwImaRSJsj3dfC5l9ZrJ/WxXQYdej9dDreOIAMNM0d7wOKiz4TNuJjqcm65uESRT2ya3T0tNm\n NwpTYMEo=", "X-Gm-Gg": "AeBDieubAoIrPjv6x098J6SiDy/2lsUbCEpSN/aK/QHE7SMJBy4AZHG18vZfUuwKJcs\n uUTEPjj8zkTQSZ6ndRkKqtEnmfP52fxrz0RTvscdNPsKrBKSZTKKekGXHa+dzDmB9cbxMYs2uuh\n rGGyfsBSy7JQfYmA6lFO6Jh5vnK1IDcAQZdT2aHn+9diK+RZao3l2gzIVr8iczpZ0cfS3KpxjIx\n Ot2cEyA7sDilsUtdE3LUiV8vHCZ2hSHwjVwk9dzo2am55NE+I5GGUVlc2OJ04NnbOf9zGGpQI2t\n CdbJMXK19LaOHdFxuP42Y0Qq9R4B9bSZYMAONT/sPYFlRmXiqwnmRsl1lwzwQAmR4o7k08iX6j6\n c3PIK8sjRTUs+lJjVdbEnOqPn3xNVPRG86Ojnr0Qqo1uwYEBNw1xtWL+QMjpuNzaevkJIVYKYfM\n n9yKXJU3dEXSlEQeod7Cs/NHfIl1ib7YA0K6yLwYD+1DOiIO9BiJP8P3Nrl/du6SMmJg5hvWdu", "X-Received": "by 2002:a05:6000:25c4:b0:439:c299:4d8f with SMTP id\n ffacd0b85a97d-43d64271215mr6998283f8f.17.1775850805518;\n Fri, 10 Apr 2026 12:53:25 -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>", "Subject": "[PATCH v2 00/27] monitor: Remove need of per-target handlers", "Date": "Fri, 10 Apr 2026 21:52:54 +0200", "Message-ID": "<20260410195323.17937-1-philmd@linaro.org>", "X-Mailer": "git-send-email 2.53.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::32a;\n envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.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=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": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Changes needed for the single binary (and heterogeneous emulation).\n\nConvert target_monitor_defs() and target_monitor_defs()\nto SysemuCPUOps fields, adapting the 4 targets using these\n'legacy' code.\n\nInstead of filtering the commands per target / device at\nbuild time, add a new field to HMPCommand to filter them\nat runtime, allowing to compile the command array once.\n\nPhilippe Mathieu-Daudé (27):\n monitor: Have MonitorDef::get_value() always return int64_t type\n monitor: Remove target_long use in get_monitor_def()\n monitor: Reduce target-specific methods further\n monitor: Remove 'monitor/hmp-target.h' header\n monitor: Forward-declare the MonitorDef type\n cpus: Introduce SysemuCPUOps::monitor_defs hook\n target/i386: Replace target_monitor_defs -> SysemuCPUOps::monitor_defs\n target/m68k: Replace target_monitor_defs -> SysemuCPUOps::monitor_defs\n target/sparc: Replace target_monitor_defs ->\n SysemuCPUOps::monitor_defs\n monitor: Remove target_monitor_defs()\n cpus: Introduce SysemuCPUOps::monitor_get_register() hook\n target/riscv: Register target_get_monitor_def in SysemuCPUOps\n monitor: Remove target_get_monitor_def()\n monitor/meson: Use SPICE with migration HMP commands\n stubs: Rename monitor* -> qmp* files\n monitor: Make 'info via' a generic command\n monitor: Make Xen emulation commands generic ones\n system: Expose 'arch_init.h' as 'qemu/target-arch-defs.h'\n monitor: Introduce HMPCommand::arch_bitmask field\n hw/s390x: Reduce 'monitor/monitor.h' inclusions\n monitor: Do not check TARGET_S390X to build s390x commands\n monitor: Do not check TARGET_I386 to build target/i386/ commands\n monitor: Do not check TARGET_I386 to build 'info sgx' command\n monitor: Do not check TARGET_I386 to build 'info sev' command\n monitor: Do not check TARGET_I386/RISCV to build 'info mem' command\n monitor: Do not check multiple TARGET_* to build 'info tlb' command\n monitor: Merge hmp-target.c code within hmp-cmds.c\n\n MAINTAINERS | 14 ++-\n include/hw/core/sysemu-cpu-ops.h | 13 ++\n include/hw/s390x/storage-attributes.h | 4 -\n include/hw/s390x/storage-keys.h | 3 -\n include/monitor/hmp-target.h | 46 -------\n include/monitor/hmp.h | 21 ++++\n .../qemu/base-arch-defs.h | 10 +-\n include/qemu/typedefs.h | 1 +\n monitor/monitor-internal.h | 7 +-\n target/riscv/internals.h | 3 +\n hw/i386/kvm/xen-stubs.c | 12 ++\n hw/i386/sgx-hmp-stub.c | 16 +++\n hw/i386/sgx-stub.c | 6 -\n hw/i386/sgx.c | 1 -\n hw/misc/mos6522-stub.c | 16 +++\n hw/pci/pci.c | 2 +-\n hw/s390x/s390-skeys.c | 2 +\n hw/s390x/s390-stattrib.c | 2 +\n monitor/hmp-cmds.c | 41 ++++++-\n monitor/hmp-target.c | 115 ------------------\n monitor/hmp.c | 53 +++++++-\n stubs/hmp-cmd-info_mem.c | 12 ++\n stubs/hmp-cmd-info_sev.c | 16 +++\n stubs/hmp-cmd-info_tlb.c | 12 ++\n stubs/hmp-cmds-hw-s390x.c | 15 +++\n stubs/hmp-cmds-target-i386.c | 13 ++\n stubs/{monitor-arm-gic.c => qmp-arm-gic.c} | 0\n ...or-cpu-s390x-kvm.c => qmp-cpu-s390x-kvm.c} | 0\n .../{monitor-cpu-s390x.c => qmp-cpu-s390x.c} | 0\n stubs/{monitor-cpu.c => qmp-cpu.c} | 0\n stubs/{monitor-i386-rtc.c => qmp-i386-rtc.c} | 0\n stubs/{monitor-i386-sev.c => qmp-i386-sev.c} | 0\n stubs/{monitor-i386-sgx.c => qmp-i386-sgx.c} | 0\n stubs/{monitor-i386-xen.c => qmp-i386-xen.c} | 0\n stubs/target-get-monitor-def.c | 29 -----\n stubs/target-monitor-defs.c | 7 --\n system/arch_init.c | 2 +-\n system/qdev-monitor.c | 2 +-\n system/vl.c | 2 +-\n target/i386/cpu-apic.c | 1 -\n target/i386/cpu.c | 24 ++++\n target/i386/monitor.c | 26 ----\n target/i386/sev-system-stub.c | 6 -\n target/i386/sev.c | 1 -\n target/m68k/cpu.c | 18 +++\n target/m68k/monitor.c | 22 ----\n target/ppc/monitor.c | 2 -\n target/riscv/cpu.c | 1 +\n target/riscv/monitor.c | 5 +-\n target/sh4/monitor.c | 1 -\n target/sparc/cpu.c | 19 +++\n target/sparc/monitor.c | 19 ---\n target/xtensa/monitor.c | 1 -\n hmp-commands-info.hx | 26 ++--\n hmp-commands.hx | 13 +-\n hw/i386/meson.build | 1 +\n hw/misc/meson.build | 1 +\n migration/meson.build | 2 +-\n monitor/meson.build | 5 +-\n stubs/meson.build | 23 ++--\n 60 files changed, 368 insertions(+), 347 deletions(-)\n delete mode 100644 include/monitor/hmp-target.h\n rename system/arch_init.h => include/qemu/base-arch-defs.h (92%)\n create mode 100644 hw/i386/sgx-hmp-stub.c\n create mode 100644 hw/misc/mos6522-stub.c\n delete mode 100644 monitor/hmp-target.c\n create mode 100644 stubs/hmp-cmd-info_mem.c\n create mode 100644 stubs/hmp-cmd-info_sev.c\n create mode 100644 stubs/hmp-cmd-info_tlb.c\n create mode 100644 stubs/hmp-cmds-hw-s390x.c\n create mode 100644 stubs/hmp-cmds-target-i386.c\n rename stubs/{monitor-arm-gic.c => qmp-arm-gic.c} (100%)\n rename stubs/{monitor-cpu-s390x-kvm.c => qmp-cpu-s390x-kvm.c} (100%)\n rename stubs/{monitor-cpu-s390x.c => qmp-cpu-s390x.c} (100%)\n rename stubs/{monitor-cpu.c => qmp-cpu.c} (100%)\n rename stubs/{monitor-i386-rtc.c => qmp-i386-rtc.c} (100%)\n rename stubs/{monitor-i386-sev.c => qmp-i386-sev.c} (100%)\n rename stubs/{monitor-i386-sgx.c => qmp-i386-sgx.c} (100%)\n rename stubs/{monitor-i386-xen.c => qmp-i386-xen.c} (100%)\n delete mode 100644 stubs/target-get-monitor-def.c\n delete mode 100644 stubs/target-monitor-defs.c" }