get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/2233248/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2233248,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2233248/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505224826.2698753-6-pierrick.bouvier@oss.qualcomm.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260505224826.2698753-6-pierrick.bouvier@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-05-05T22:48:25",
    "name": "[v4,5/6] target-info-qom: detect target from QOM",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "eb7b594ee609002a0b5af7e40bce494977a70612",
    "submitter": {
        "id": 93152,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93152/?format=api",
        "name": "Pierrick Bouvier",
        "email": "pierrick.bouvier@oss.qualcomm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505224826.2698753-6-pierrick.bouvier@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 502907,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/502907/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502907",
            "date": "2026-05-05T22:48:20",
            "name": "single-binary: deduplicate target_info()",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/502907/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2233248/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2233248/checks/",
    "tags": {},
    "related": [],
    "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=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=DlIV/7Rg;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=c5PVjqKw;\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=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.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 4g9DGq4dpvz1yKd\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 08:49:39 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wKOZF-0006QW-2i; Tue, 05 May 2026 18:48:41 -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 <pierrick.bouvier@oss.qualcomm.com>)\n id 1wKOZB-0006PM-RX\n for qemu-devel@nongnu.org; Tue, 05 May 2026 18:48:37 -0400",
            "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pierrick.bouvier@oss.qualcomm.com>)\n id 1wKOZA-0006AN-8t\n for qemu-devel@nongnu.org; Tue, 05 May 2026 18:48:37 -0400",
            "from pps.filterd (m0279871.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 645ErHcO248496\n for <qemu-devel@nongnu.org>; Tue, 5 May 2026 22:48:35 GMT",
            "from mail-dy1-f199.google.com (mail-dy1-f199.google.com\n [74.125.82.199])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dyjq41qng-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 22:48:35 +0000 (GMT)",
            "by mail-dy1-f199.google.com with SMTP id\n 5a478bee46e88-2f485961555so991024eec.1\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 15:48:35 -0700 (PDT)",
            "from hu-pbouvier-lv.qualcomm.com (Global_NAT1.qualcomm.com.\n [129.46.96.20]) by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2f56d4cf2fdsm898953eec.8.2026.05.05.15.48.33\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 May 2026 15:48:33 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n cc:content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=qcppdkim1; bh=\n 4s3jHbmg75cVEgANJXecjMz/G9qW28DVPPqZw24W3uc=; b=DlIV/7RghveM2x+F\n AIg43OlKxhLs2zcU58QE1MdaPaRFPOgzq8pdN3L03LTkuwk6/hQU9DH45W8NfC8+\n 42dysL/NakLFDJY8z0bGfUwiKMdUuC+fHeH/BEArpMKgjxKNzzyZVeHDbHzJJCgE\n Ht5toqaMIA86JKkdxOblWSV/4ubDIUXWe8IBRbnYzjvUFnZGPgJssABOH67w5qUT\n DqmI1i7GgKXEF5lxP5aaE9U6ydoMsrZNIvad+9BZd0KJNJI1ckC5TleynJ2Qp7sT\n MCZdapQy67BTx1xA7QY0ahsBR1n60Kd/NLbCeuvVKSFfZIpN7+pfxMiV8zO0Zk19\n M9s7tg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1778021314; x=1778626114; 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=4s3jHbmg75cVEgANJXecjMz/G9qW28DVPPqZw24W3uc=;\n b=c5PVjqKwa8Kht5XTrP/aD0DqMyqC7SmKQkz4uZW98nB+z4hmlFWDDo5L33Pn7R7dP0\n va4A1KtV83hzm8EbHPBNmeiN0lvtUhrFRmMUdfwrmz2vIlCFa8jSKMuTc2zUfJ+MaW63\n TQ1WAjZYtEyWXbol6sdu8Uxpz4jM7TwtXWJjObkqWQH/nj19F/v4uJXiSse63nWPdmgP\n eSMzrgwC6rHIId9I2K6LNaRYqVwub7qlvpihl/t1akrlxiwYxpugoB3A3mkpW2OH9uv2\n i5P/yRBCwv7AgwKOA9HOjIXD/gxvxHPmCIB3U59iv922pnv9M7dmi06a8SrtRZDB3fBB\n rg5A=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778021314; x=1778626114;\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=4s3jHbmg75cVEgANJXecjMz/G9qW28DVPPqZw24W3uc=;\n b=SWE615CIwYprzl7c38cuz7fJcZbELdpOUXdQWJn0HfI2kFLm8HNZTaSRMRSvDvwwj2\n 0kjtAK5qPaODb/0aOtUmdtLuyPwuSNAImHJv4jA9vxgJrQyjUm+CYfVSdfWnvdTKZgG9\n 6ZFTCB0GRm+XDlMCMZeqWEDTU/968q0OypMcZeWMowtl3WyTcR+t9Ucbx32ZeIpsXQND\n HQi3XmQ6vgfch4IWlCQMI/pmgZRiA3aY1Q/YdN/PNPHBQDueDU76/yU/ZmLHL6NjRvo4\n Fczbv6FJBKbZEQcBbUdiscaMYmvzny0P2is7oPBe8H7fzg1icg8QQySkKXOT5sDqmgC2\n UpUA==",
        "X-Gm-Message-State": "AOJu0Yz9T/coZiqia/LAdM226p4DrnP72oqF5f2iprgzX8XJlkHQnVYd\n 7iFUi5rnDxXzcMpNy6DJaK6P1CMBhDUFW7QV5EaIlXv8ajxNQmh05ItfSNuk9OGdON45RqmrlLE\n S8Mc3XjruFffaIs8IIAX2Xq4+60FxPKVhxeoafGMsf9yMSLb710P+yBIwckhnjQrFhn8I",
        "X-Gm-Gg": "AeBDieuB31g1fGU4fdQVdo735P7OLp6Tc/BavCXzCr9YUz657be/tUu5rcxdAfNM3hY\n 9rHraH1SIczteQD5ZyfMEmrvkuWoHBIpVxe/RyeQJKWQmRpj0yrsZDZ/Hfw9BbJV8XWYJ9U/Qmf\n L5MdZmZH6her84DYo+ax4qkskewN2AF9UDzUbx2GjgPXXlJmi7KIOPxiDXi6KoCOaAaM17Wqlh1\n N7GYHFC2d6dARuqvGjw2UcS0J9VGqjpVCiZeiMnjncRwU4eOSM/bps2iCSMSWKGlvrNSIlouRGu\n 9lo2ZC8dZNv/062GwhWkL8MPA+lu2U821L/RD9Z1mWwYqTPifw5XGSfaSSz5rCn+36lA27dXTvT\n Gv6ANpz/vftnkJQ0GRT7AraNhFagS2zHswKPk/MqoyB5SfuAaNm5ZWAPtGRnURGl1kVAakyBB7J\n pLzSoXV6t2e83NJ72H",
        "X-Received": [
            "by 2002:a05:693c:2c86:b0:2ef:8b91:212 with SMTP id\n 5a478bee46e88-2f548e9922emr762018eec.14.1778021314176;\n Tue, 05 May 2026 15:48:34 -0700 (PDT)",
            "by 2002:a05:693c:2c86:b0:2ef:8b91:212 with SMTP id\n 5a478bee46e88-2f548e9922emr762011eec.14.1778021313656;\n Tue, 05 May 2026 15:48:33 -0700 (PDT)"
        ],
        "From": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Anton Johansson <anjo@rev.ng>, marcandre.lureau@redhat.com,\n Markus Armbruster <armbru@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Max Filippov <jcmvbkbc@gmail.com>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, =?utf-8?q?Dani?=\n\t=?utf-8?q?el_P=2E_Berrang=C3=A9?= <berrange@redhat.com>",
        "Subject": "[PATCH v4 5/6] target-info-qom: detect target from QOM",
        "Date": "Tue,  5 May 2026 15:48:25 -0700",
        "Message-ID": "<20260505224826.2698753-6-pierrick.bouvier@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260505224826.2698753-1-pierrick.bouvier@oss.qualcomm.com>",
        "References": "<20260505224826.2698753-1-pierrick.bouvier@oss.qualcomm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-Authority-Analysis": "v=2.4 cv=MYxcfZ/f c=1 sm=1 tr=0 ts=69fa73c3 cx=c_pps\n a=cFYjgdjTJScbgFmBucgdfQ==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17\n a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10\n a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22\n a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=0wc84GFNkZAXjcWhtbQA:9 a=3ZKOabzyN94A:10\n a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTA1MDIyMiBTYWx0ZWRfX4ZSVN8lc4yTi\n wM0rAZzfdBuzvtmt+CeoKpPNAk/h2sOAEMjKC1KD1rdOjR2xLYkVX6t+Ec3QrfPaBJP4BmnIdYs\n yOpcJEGcqLoElpG7PkY2gxFJE5ftwHju37Ve1FSKfOFhH6RUzZXs9Zl4dnFy8XqSQMRJxCEBR6W\n /SimoZPdOqNG5iN2Rh02jgSJxjHVNSngR5ss/WM0sFnGHZRSdz57Z8WetrgMFAorqfFnfeV6QZO\n +PhDrqdTZIgQOwaCVSnD0H41OMmN31ILPsLbt3YUOg309rkjzhxYudmnpnoxTX5+hYu8/436Q6G\n B4EqaRtOusq8y68BpBYUUfpAkh91Fzcx+RnWGQQpmVmAgOrtdDp2pDfgV7rFqj2EluDKcEqSiIQ\n 734+tNq8ky+AvvLSB+oBBANtzi7GMr4K7xdawC9pGG0M7JwTFvzF1ZgRTLnkBBe8tTlm4ZNvjKF\n 5JTY8lymBppJtsiFQag==",
        "X-Proofpoint-GUID": "W9_-PZfDuYlRK7bLqibfrwTLCeHCc94z",
        "X-Proofpoint-ORIG-GUID": "W9_-PZfDuYlRK7bLqibfrwTLCeHCc94z",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-05-05_02,2026-04-30_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n suspectscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0\n phishscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 impostorscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605050222",
        "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=pierrick.bouvier@oss.qualcomm.com;\n helo=mx0b-0031df01.pphosted.com",
        "X-Spam_score_int": "-27",
        "X-Spam_score": "-2.8",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham 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": "For now, we expect only one target to be available at runtime. This will\nchange with the single-binary and we'll detect which one to use\ndynamically.\n\nReviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>\nSigned-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>\n---\n include/qemu/target-info-qom.h |  2 ++\n system/vl.c                    |  2 ++\n target-info-qom.c              | 16 ++++++++++++++++\n 3 files changed, 20 insertions(+)",
    "diff": "diff --git a/include/qemu/target-info-qom.h b/include/qemu/target-info-qom.h\nindex 585995c7ad0..91be415ed33 100644\n--- a/include/qemu/target-info-qom.h\n+++ b/include/qemu/target-info-qom.h\n@@ -25,4 +25,6 @@ typedef struct TargetInfoQomClass {\n \n OBJECT_DECLARE_TYPE(TargetInfoQom, TargetInfoQomClass, TARGET_INFO)\n \n+void target_info_qom_set_target(void);\n+\n #endif /* QEMU_TARGET_INFO_QOM_H */\ndiff --git a/system/vl.c b/system/vl.c\nindex 2b6739271ba..77b2b4e673d 100644\n--- a/system/vl.c\n+++ b/system/vl.c\n@@ -28,6 +28,7 @@\n #include \"qemu/units.h\"\n #include \"qemu/module.h\"\n #include \"qemu/target-info.h\"\n+#include \"qemu/target-info-qom.h\"\n #include \"exec/cpu-common.h\"\n #include \"exec/page-vary.h\"\n #include \"hw/core/qdev-properties.h\"\n@@ -2891,6 +2892,7 @@ void qemu_init(int argc, char **argv)\n     os_setup_limits();\n \n     module_call_init(MODULE_INIT_TARGET_INFO);\n+    target_info_qom_set_target();\n \n     module_init_info(qemu_modinfo);\n     module_allow_arch(target_name());\ndiff --git a/target-info-qom.c b/target-info-qom.c\nindex ba2c7923760..9d1f50ffcab 100644\n--- a/target-info-qom.c\n+++ b/target-info-qom.c\n@@ -36,3 +36,19 @@ static const TypeInfo target_info_parent_type = {\n };\n \n DEFINE_TARGET_INFO_TYPE(target_info_parent_type)\n+\n+static const TargetInfo *target_info_ptr;\n+\n+void target_info_qom_set_target(void)\n+{\n+    g_autoptr(GSList) targets = object_class_get_list(TYPE_TARGET_INFO, false);\n+\n+    size_t num_found = g_slist_length(targets);\n+    if (num_found != 1) {\n+        error_setg(&error_fatal, num_found == 0 ?\n+                                 \"no target-info is available\" :\n+                                 \"more than one target-info is available\");\n+    }\n+\n+    target_info_ptr = TARGET_INFO_CLASS(targets->data)->target_info;\n+}\n",
    "prefixes": [
        "v4",
        "5/6"
    ]
}