Show a cover letter.

GET /api/1.2/covers/2235272/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2235272,
    "url": "http://patchwork.ozlabs.org/api/1.2/covers/2235272/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260509005453.3984184-1-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": "<20260509005453.3984184-1-pierrick.bouvier@oss.qualcomm.com>",
    "list_archive_url": null,
    "date": "2026-05-09T00:54:47",
    "name": "[v5,0/6] single-binary: deduplicate target_info()",
    "submitter": {
        "id": 93152,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/93152/?format=api",
        "name": "Pierrick Bouvier",
        "email": "pierrick.bouvier@oss.qualcomm.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260509005453.3984184-1-pierrick.bouvier@oss.qualcomm.com/mbox/",
    "series": [
        {
            "id": 503469,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503469/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=503469",
            "date": "2026-05-09T00:54:47",
            "name": "single-binary: deduplicate target_info()",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/503469/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/covers/2235272/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=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=owJ+zZ5w;\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=fDvQyWP4;\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 4gC6xL2XCFz1yCg\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 09 May 2026 10:56:04 +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 1wLVyY-0000UX-1v; Fri, 08 May 2026 20: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 <pierrick.bouvier@oss.qualcomm.com>)\n id 1wLVyM-0000TJ-5N\n for qemu-devel@nongnu.org; Fri, 08 May 2026 20:55:14 -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 1wLVyK-0005x5-6m\n for qemu-devel@nongnu.org; Fri, 08 May 2026 20:55:13 -0400",
            "from pps.filterd (m0279873.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6490Jh0x1767957\n for <qemu-devel@nongnu.org>; Sat, 9 May 2026 00:55:10 GMT",
            "from mail-dl1-f71.google.com (mail-dl1-f71.google.com\n [74.125.82.71])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e1t9q01sr-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <qemu-devel@nongnu.org>; Sat, 09 May 2026 00:55:09 +0000 (GMT)",
            "by mail-dl1-f71.google.com with SMTP id\n a92af1059eb24-131371497a1so6669913c88.0\n for <qemu-devel@nongnu.org>; Fri, 08 May 2026 17:55:09 -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-2f888c3b301sm5352610eec.23.2026.05.08.17.55.06\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 08 May 2026 17:55:06 -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:message-id\n :mime-version:subject:to; s=qcppdkim1; bh=CX4ZoN6AAdVYrdT/4aqOH6\n Y9RfQSagAnJrJv2MDutQQ=; b=owJ+zZ5wSlxc503TlX6LW2PRLJwXd85kvU6GRs\n a+zOtYY+BRljA/fGzjwXQ7fGbULHNnZGx0ipah2WnikiyZiF126M6E8PFc4wdExw\n 0XBM7URaY+yyZtZ4V/ATmYKmn1aM6sKNyN4MIlbHmQgIbGnHkI0aaIq7fEyN/S3/\n jC651uCYMmvQtgcvPCeACaYeFDT9zcxs7RjJD1q6Uu4cTxFABRA0puyKOTnAJE4r\n iJIarJHddAn3KcYczBDLv07E2WES/bsyPeSAAWGKXoFxh6Z4iAihki7Lv5DOwb/M\n bgZ/Sr3MBujMe/xj1PY3vtwKSTEsrqWk/bZJaqcwO9s5XX8w==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1778288108; x=1778892908; 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=CX4ZoN6AAdVYrdT/4aqOH6Y9RfQSagAnJrJv2MDutQQ=;\n b=fDvQyWP4bfTtTs0u8KRDAV2WF/GhcCt3pRAHpBIaKKZfXPveHmh+KYfiG7OH31c7du\n sU0J3mVrfc2hzveFh+2EXkxLm3KK6kbuVn7jupUmN6Ff2c+SZs2EkiE03Lwar0fcGzHS\n 68rhodrGllx0rJeJ92vr8ujld5inpkmbMqPBdvApLjG23THBjvNF+nOZL9p8SUZC/5/B\n gz7DX7bpkNSw+af/yO1tHZ87agyVKPkwyvH7wtEHz9KwJxhG98CyJ2oQnYDnGAZEU0pX\n 0p70yvmUdN9hbsrKlhY9sB6El7iO4noxUQ89+fRB5Ul5xvS3e116ePI7YzYP9otK60Ha\n BZ1A=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778288108; x=1778892908;\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=CX4ZoN6AAdVYrdT/4aqOH6Y9RfQSagAnJrJv2MDutQQ=;\n b=kVJxEWTgK68rfnrm0rKXSyLVeXvEkmFrDhsNnjRW2PS0teysbjT3PyPQ9zRzRyuxMp\n xFIrFD39WweCo2uTO54ZWhLvkS++D3gKc16B7ghytRn5KuRn8Ss2iiRDsApMdoeq0LJr\n ElLCdr4bOXb+OaecA8KUSzHGp1a81DgW8spmv5+9KdAxnBOoZ6MMndlKaZK8vywim09i\n Nh6N3JddvayfLVJC5f2fkFSyNdqjaWoD041sNaCYLIbQdN1A6/fyCn5QIB644wqwLKr+\n cQzqjW66kojngHjJj+NP4QbuX/74rPCjXyy2VpfpSg5bfe/OtU9zArDkkOc95w5p7zoU\n CJVw==",
        "X-Gm-Message-State": "AOJu0Yy+wd6wRymytN0mfuV1tO6kAuvNxM+/4xEy6pXETktZs/zA1ECH\n mRwAtEb/v/mFHFYAuvWfW+swJPXtnhsyuP5BJ+FT9QAY1yDhkKOP1LdaFTjLVNoTddObCHWGskM\n /8WBw9V24ByNnvAUEUESF47IEfYxFRvs3G9+xdvvtCmbMrcmDmVmmIQwvwv/8WgICg92w",
        "X-Gm-Gg": "AeBDiev0P3rPR+b89IRDtdwQxQB2U7/mpzYdQfltOQgzTuTD6RIY1ZNbLWZ742QlSgn\n FMAr0zU1kB4bFAATIavDZcveS6yYfuc75YFexrbkVvvj1ShZeoDQfUMhXB1YcvxxWwi0fs6QqAr\n AwUlAWxftBYeVRucSma/wMs85fZsnxxtcxtVT0BZ8Mt9GA/n7zvCUDvVIuQDTFBVdxPCLnNeCpc\n A4aOB5Gcfp/L1JFV/KJLCPnBA/CHK9JNeAKjE0npZFFQlCI9BHEzIgRYhZnzofnJr4mGZLfmN1p\n iyAXA9nhAPAgrYgXXSrGSzVf6vHnc1r0Ikh/Fnk1U18aNEFaYytaRSqbzz9UcNAC/PYHzQQZPB8\n WLV1c9dkC3GVKvXt2Kg5KfkPKFwGsg1DpNmeDtticE50rpq6w+5kIyIPf3iG9rF/PLTQKSrQuT2\n fy/b07ew==",
        "X-Received": [
            "by 2002:a05:7022:ef09:b0:130:ca6f:6c3d with SMTP id\n a92af1059eb24-1327124fb09mr2722297c88.1.1778288108294;\n Fri, 08 May 2026 17:55:08 -0700 (PDT)",
            "by 2002:a05:7022:ef09:b0:130:ca6f:6c3d with SMTP id\n a92af1059eb24-1327124fb09mr2722274c88.1.1778288107533;\n Fri, 08 May 2026 17:55:07 -0700 (PDT)"
        ],
        "From": "Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Daniel_P=2E_?=\n\t=?utf-8?q?Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Marc-Andr=C3=A9_?=\n\t=?utf-8?q?Lureau?= <marcandre.lureau@redhat.com>,\n Markus Armbruster <armbru@redhat.com>, Max Filippov <jcmvbkbc@gmail.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,\n Anton Johansson <anjo@rev.ng>",
        "Subject": "[PATCH v5 0/6] single-binary: deduplicate target_info()",
        "Date": "Fri,  8 May 2026 17:54:47 -0700",
        "Message-ID": "<20260509005453.3984184-1-pierrick.bouvier@oss.qualcomm.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Proofpoint-GUID": "yNSXL67uiA-DZR-3BST0KIMA3h3xo9Ed",
        "X-Proofpoint-ORIG-GUID": "yNSXL67uiA-DZR-3BST0KIMA3h3xo9Ed",
        "X-Authority-Analysis": "v=2.4 cv=J7yaKgnS c=1 sm=1 tr=0 ts=69fe85ed cx=c_pps\n a=JYo30EpNSr/tUYqK9jHPoA==: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=rJkE3RaqiGZ5pbrm-msn:22\n a=jQUQ9ERTYtW1-GRz-9EA:9 a=QEXdDO2ut3YA:10 a=Fk4IpSoW4aLDllm1B1p-:22",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNTA5MDAwNiBTYWx0ZWRfX0bVV9oR5GwCV\n PsFIEUZEe0TDlb775E2C7xtyJqsmPRujxMEme03Wxt0SpyRwyqKbaLf/ZK05Vx0dBkOKY/v3ryW\n cyhsRUTpiXP8FX4r5nhEmzUlLQJgeSUdvqUUjK9mmAw48woJYlBIVUNOygSmFSSAYpm853Lx8l8\n gdXKXQeWf3gZImQHhXyyTUWDe8jDk5w3RzBZ3hfmr5fx7zDxfuESrZ+hJ3tunwzQK9gbp7RJGGV\n 4clrQLVjOR16K+uHuF9MFF9Zi0CO9Vrd4ieb7R+hVs/Ef77mG/wtQcMU066cehTUn7maxjuBROx\n 4YFr0/N56DsK8bYc2y81F2v3ks/U/wJez7tKUlE3byE7kVyT3opUjDgAXUhcfowIvdcLPfIPF11\n 2Ce/V+BWDu2e5Axk6wtY/lWNmYUa1325n2OrnUUHmSUiX09gRsk/K4YCzFg0eeuXaY33jSuiUII\n uieP+3CXhu88pwSb7vQ==",
        "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-09_01,2026-05-08_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n bulkscore=0 impostorscore=0 clxscore=1015 suspectscore=0 priorityscore=1501\n adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 spamscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604200000 definitions=main-2605090006",
        "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": "We are getting close to be able to link several targets in a single QEMU system\nbinary, and the last obstacle on the road is to embed several TargetInfo in the\nsame binary. The end result of this series is to have a single definition for\ntarget_info symbol.\n\nThis series adds TargetInfo types in QOM, and retrieve them dynamically(). At\nthe moment, we don't deal yet with multiple TargetInfo selection, but install\nall that is needed to be able to do it easily.\n\nBecause TargetInfo data is set through class_init, it creates an issue at\nstartup, where we may try to instantiate additional (unrelated) types just to\nretrieve the list of \"target-info-X\" types. Those other types class_init may be\nusing target information, to add target specific properties for instance.\nThis issue has been fixed by adding a new object_class_get_list_by_name_prefix\nthat does not force instantiation of all QOM types, but only those matching a\nspecific pattern. This way, we first initialize and retrieve target-info types\nbefore others.\n\nAn alternative would be to leave all this out of QOM, and use startup\ninitializer to add them in a single list. However, because all the single-binary\nwork has been using QOM where possible, it would be really sad to not use it for\nthis final step. Comments are welcome!\n\nFinally, sticking to our promise not create a special \"single-binary\nconfiguration\", the goal is to use the *exact* same codepath for normal binaries\nalso. It means that even for existing system binaries, the goal will be to use\nQOM to retrieve current target, even if there is only one.\n\nv5\n--\n\n- Fix header guard name for target-info-init.h\n  (TARGET_INFO_INIT_H -> QEMU_TARGET_INFO_INIT_H)\n- add a new patch to initialize type_table with TYPE_OBJECT and TYPE_INTERFACE,\n  as suggested by Richard\n- use a single class_init for all target-info-* classes.\n\nv4\n--\n\n- Revert to v2 MODULE_INIT_TARGET_INFO as Daniel didn't comment on issues about\n  about MODULE_INIT_QOM_EARLY.\n\nv3\n--\n\n- fix rebase mistake for one header guard\n- remove MODULE_INIT_TARGET_INFO and introduce MODULE_INIT_QOM_EARLY, as\n  requested by Daniel\n\nv2\n--\n\n- fix header guards\n- introduce new module init step (MODULE_INIT_TARGET_INFO)\n- as a consequence of item above, we need to register TYPE_OBJECT before startup\n- fix xtensa core type registration using type_init instead of static ctor\n\nPierrick Bouvier (6):\n  qom/object: register OBJECT and INTERFACE QOM types before main\n  qom/object: initialize type_table in static ctor with fundamental QOM\n    types\n  target-info: extract target_info() definition in target-info-init.h\n  target-info-qom: detect target from QOM\n  target-info: replace target_info() in system-mode\n  target-info-qom: use a single class_init for target-info-* classes\n\n configs/targets/aarch64-softmmu.c |  6 +--\n configs/targets/arm-softmmu.c     |  6 +--\n include/qemu/module.h             |  1 +\n include/qemu/target-info-init.h   | 63 +++++++++++++++++++++++++++++++\n include/qemu/target-info-qom.h    | 31 +++++++++++++++\n qom/object.c                      | 22 +++--------\n system/vl.c                       |  4 ++\n target-info-qom.c                 | 41 ++++++++++++++++++++\n target-info-stub.c                |  6 +--\n 9 files changed, 152 insertions(+), 28 deletions(-)\n create mode 100644 include/qemu/target-info-init.h\n create mode 100644 include/qemu/target-info-qom.h"
}