Show a cover letter.

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

{
    "id": 2221991,
    "url": "http://patchwork.ozlabs.org/api/1.1/covers/2221991/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260410150457.85190-1-zhangckid@gmail.com/",
    "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": "<20260410150457.85190-1-zhangckid@gmail.com>",
    "date": "2026-04-10T15:04:43",
    "name": "[V6,00/14] iothread: Support tracking and querying IOThread holders",
    "submitter": {
        "id": 72278,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/72278/?format=api",
        "name": "Zhang Chen",
        "email": "zhangckid@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260410150457.85190-1-zhangckid@gmail.com/mbox/",
    "series": [
        {
            "id": 499477,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499477/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=499477",
            "date": "2026-04-10T15:04:43",
            "name": "iothread: Support tracking and querying IOThread holders",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/499477/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/covers/2221991/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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ZbECj9tx;\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 4fsg920M9jz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 11 Apr 2026 01:05:42 +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 1wBDQ8-0006Nf-4k; Fri, 10 Apr 2026 11:05:20 -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 <zhangckid@gmail.com>)\n id 1wBDQ2-0006Io-2N\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 11:05:14 -0400",
            "from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <zhangckid@gmail.com>)\n id 1wBDQ0-0001ro-4f\n for qemu-devel@nongnu.org; Fri, 10 Apr 2026 11:05:13 -0400",
            "by mail-pj1-x1033.google.com with SMTP id\n 98e67ed59e1d1-35d9827661bso1300847a91.3\n for <qemu-devel@nongnu.org>; Fri, 10 Apr 2026 08:05:10 -0700 (PDT)",
            "from ZBMac-LWN10QXKQ0.taila0cd24.ts.net ([104.168.88.121])\n by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35e4131cfacsm3565785a91.10.2026.04.10.08.05.04\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Fri, 10 Apr 2026 08:05:08 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775833509; x=1776438309; 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=kJV6wco7dT6ayqoAQ+JWGsbBtHVP2OC/wvM7YZ2inOw=;\n b=ZbECj9txgkN4yUAlCD7Z4bj2DUIg4A6XExGmmvE9m4teqgPh2SZV2Wz9HCGy9cEOVa\n 53BoBGki5cy/wEqyYHO6E+JRY+KGlgO8DgdyIUL1nQaLZ1FZ09xj2z3wwzZe4sPYKxWk\n kJ1og3COruSw2hQLsSg756oM4Ke3+gti3WD7LH+uhJyXxB0ozAR2m026nmWtHJivxpWI\n xuntT/uoVVxFJCxNUfow3uboC8v5G6p5ZzCKb9AMrgSSkliWXxFH5KwmadACGbmIgQzb\n Tdis1orndTN94xIEGAJQ0W/RnJx6qJgwYC9d1QcjVeUxgYYeZaUNJjMU1b5Z8AbPgGI3\n F7AQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775833509; x=1776438309;\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=kJV6wco7dT6ayqoAQ+JWGsbBtHVP2OC/wvM7YZ2inOw=;\n b=Z6xWVDaZ33JyN9+Cta9AMwyul31TZfjDYwBxXo3Qhx6VX8xxhP19MGjC95LnbqNAtI\n yEJK6UGNmT6y431yBPCC92O9n3CDymWxUVj+wkPplO3NWRT+i5+hySiB1cbr7NXKxMRP\n W7Xy0zx5aT5mzeju8cLddCdqwxCHGsxX9woXBIYK1PJey/0dcQI5+CbaWE6DZIxWiWDz\n ZHdkQ1wqrC7HWU0mgciCSnhMKoQ+5T7Bwo/vFGyjaRP8YvAdTh1whSGX/uscjrkrQflC\n 8ZDYuoe/puGtPQuIL3Pt44+JgA6SQi+UCuniWVJ42O2msXHnrUm4pY3UngyJQ9ErBIrg\n cuyg==",
        "X-Gm-Message-State": "AOJu0YztNFvztuF7S5iI5UFG6YRqDfc819JFNXCw3hpMd/U5NybCl9x0\n bnnZV+ZaT8i6l2AnEQPrIx7YnZ4yzcXh2Vm5VuAmI8/rkACWMPemwLW0MpkuZsbB",
        "X-Gm-Gg": "AeBDietaxQ78IYCX0O1jXk57EGr5r3FEaxK8nMLFCvRf1cFrraZKl84L2STmemU4tvN\n LZhNGu7SP7TSSammvEWFL85qhjmafLoEbMpdUdRB0IK8GIRxO6iBODqyNEEyV9kzzyl7jscQE26\n yaTwtkoUyGDT7Ii5NQ+8WnApZKXIeMHQ6FuBZnE0vCyZG1295bpW3VB8SoIVhwwuYCNMEXGzClQ\n HWOnL6Xj8MFEePntQefIMRiq78Qtb6sw7F0oQF/9MAwbv01shLR1uR8NyiUuRsH5/sIgWG7JFEO\n g5m8//AbphJ0YslgKNcntNuOi+sSKHRBCRG9YeWGYYdsN0hRhC7GEGgKMTWSUo1CfP2iCxSEUxi\n DZdsYpvg7zS+B8PeAS+zjQ1ppNKCD6kj0xER0XL+z3N8CJllo0YKzKsm5dq2ro740eZjfLZRs9C\n HmRvkNdCUBl2sLTXO+gWSsCQWme5jUz79ILcu3Ik4cRqSuL4MDY+gZ",
        "X-Received": "by 2002:a17:90b:3e84:b0:35d:9bb3:2a31 with SMTP id\n 98e67ed59e1d1-35e4287ce53mr3974849a91.25.1775833508639;\n Fri, 10 Apr 2026 08:05:08 -0700 (PDT)",
        "From": "Zhang Chen <zhangckid@gmail.com>",
        "To": "qemu-devel <qemu-devel@nongnu.org>,\n \"Dr . David Alan Gilbert\" <dave@treblig.org>,\n Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>,\n \"Michael S . Tsirkin\" <mst@redhat.com>,\n Stefan Hajnoczi <stefanha@redhat.com>",
        "Cc": "Zhang Chen <zhangckid@gmail.com>",
        "Subject": "[PATCH V6 00/14] iothread: Support tracking and querying IOThread\n holders",
        "Date": "Fri, 10 Apr 2026 23:04:43 +0800",
        "Message-ID": "<20260410150457.85190-1-zhangckid@gmail.com>",
        "X-Mailer": "git-send-email 2.49.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::1033;\n envelope-from=zhangckid@gmail.com; helo=mail-pj1-x1033.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, FREEMAIL_FROM=0.001,\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-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": "### Motivation\nCurrently, the relationship between IOThreads and the resources using them is\nopaque. From a management perspective, it is difficult to determine which \ndevices or block exports are currently associated with a specific IOThread \nvia QMP or HMP.\n\nThis series introduces a \"holder\" tracking mechanism based on QOM paths to \nsignificantly improve IOThread observability. In high-performance \nvirtualization environments, users often pre-allocate a set of IOThreads to \nserve as a persistent thread pool. During device hotplug/unplug cycles, while \nIOThread objects remain persistent, their attachment state changes dynamically.\n\nBy tracking these \"holders,\" administrators can use `query-iothreads` to \nmonitor the real-time load distribution of the thread pool and identify which \nspecific devices (e.g., virtio-blk, BlockExport) are attached to which thread.\n\n### Technical Overview\n* Atomic API Design: Merged iothread_get_aio_context and \n  iothread_ref_and_get_aio_context into a single unified function. The new \n  API enforces a 'holder' parameter, making \"retrieval\" and \"tracking\" an \n  atomic operation to prevent reference tracking leaks.\n* Subsystem Integration: Fully migrated and adapted core modules including \n  Virtio (blk, vq-mapping, balloon, scsi), Block Layer (export, xen), \n  Network (COLO), VFIO, and the Monitor subsystem.\n* Introspection: Expanded the IOThreadInfo QAPI structure to include a \n  'holders' array (list of QOM paths), accessible via both \n  query-iothreads (QMP) and info iothreads (HMP).\n\n### V5 -> V6 Changelog\n* - First of all, I apologize for spending so much time dealing with\n    the background details of the code implementation.\n* API Refactoring (Breaking Change):\n  - Implement the 'union': 'IoThreadHolder' for combine the QOM objects\n    and the block-node.\n  - Completely merged iothread_get_aio_context variants.\n  - The iothread_get_aio_context function now strictly requires a 'holder' \n    argument to ensure every context retrieval is accounted for.\n* Expanded Module Coverage:\n  - Added holder tracking for the monitor subsystem (tracking threads used \n    by QMP/HMP).\n  - Added support for the virtio-scsi dataplane.\n* Code Cleanup:\n  - Removed redundant and obsolete API declarations.\n  - Standardized the use of object_get_canonical_path() across all callers \n    to provide consistent and unique holder names.\n* Bug Fixes:\n  - Updated qapi/misc.json documentation to fix missing descriptions in \n    query-iothreads items.\n* Build System:\n  - Improved header inclusion logic to avoid redundant declaration errors \n    in unit tests.\n* QAPI part:\n  - Sorry to drop the \"Acked-by: Markus Armbruster <armbru@redhat.com>\",\n    because this version have lots of changes in the:\n    [PATCH V6 13/14]qapi: examine IOThread attachment status via query-iothreads\n\nZhang Chen (14):\n  qapi/misc: Fix missed query-iothreads items\n  iothread: introduce iothread_ref/unref to track attached devices\n  iothread: tracking iothread users with holder name\n  blockdev: Update tracking iothread users with holder name\n  block/export: track IOThread reference in BlockExport\n  monitor: Update tracking iothread users with holder name\n  virtio-vq-mapping: track iothread-vq-mapping references using device\n    path\n  virtio: use iothread_get/put_aio_context for thread pinning\n  net/colo: track IOThread references using path-based holder\n  virtio-balloon: Update tracking iothread users with holder name\n  vfio-user/proxy: Update tracking iothread users with holder name\n  xen-block: Update tracking iothread users with holder name\n  qapi: examine IOThread attachment status via query-iothreads\n  iothread: simplify API by merging iothread_get_aio_context variants\n\n block/export/export.c                   |  44 +++++++---\n blockdev.c                              |   6 +-\n hw/block/dataplane/xen-block.c          |  10 ++-\n hw/block/virtio-blk.c                   |  13 ++-\n hw/scsi/virtio-scsi-dataplane.c         |  13 ++-\n hw/vfio-user/proxy.c                    |   7 +-\n hw/virtio/iothread-vq-mapping.c         |  11 ++-\n hw/virtio/virtio-balloon.c              |  14 ++--\n include/block/block_int-common.h        |   5 ++\n include/block/export.h                  |   6 ++\n include/hw/virtio/iothread-vq-mapping.h |   6 +-\n include/system/iothread.h               |   5 +-\n iothread.c                              | 102 +++++++++++++++++++++++-\n monitor/hmp-cmds.c                      |  22 +++++\n monitor/monitor-internal.h              |   3 +\n monitor/monitor.c                       |  24 +++++-\n monitor/qmp.c                           |   3 +-\n net/colo-compare.c                      |  18 +++--\n qapi/misc.json                          |  72 ++++++++++++++++-\n 19 files changed, 328 insertions(+), 56 deletions(-)"
}