get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226176,
    "url": "http://patchwork.ozlabs.org/api/patches/2226176/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422103018.123608-10-armenon@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "<20260422103018.123608-10-armenon@redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-22T10:30:17",
    "name": "[v5,09/10] tpm: Extend TPM TIS buffer size to 8192 bytes",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d30b3241f1703569bcf26a30b38bb794e6d43c8f",
    "submitter": {
        "id": 91136,
        "url": "http://patchwork.ozlabs.org/api/people/91136/?format=api",
        "name": "Arun Menon",
        "email": "armenon@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422103018.123608-10-armenon@redhat.com/mbox/",
    "series": [
        {
            "id": 500964,
            "url": "http://patchwork.ozlabs.org/api/series/500964/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500964",
            "date": "2026-04-22T10:30:14",
            "name": "hw/tpm: CRB chunking capability to handle PQC",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/500964/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226176/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226176/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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=b99NzYGU;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=DNLN0uCW;\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 4g0wWZ2hYVz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:31:54 +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 1wFUrh-0006pE-Kc; Wed, 22 Apr 2026 06:31:29 -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 <armenon@redhat.com>)\n id 1wFUrf-0006p5-Hk\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:31:27 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <armenon@redhat.com>)\n id 1wFUrd-00075B-Iw\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:31:27 -0400",
            "from mail-pj1-f69.google.com (mail-pj1-f69.google.com\n [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-622-VV1FOndaP9-aScaOa-_now-1; Wed, 22 Apr 2026 06:31:23 -0400",
            "by mail-pj1-f69.google.com with SMTP id\n 98e67ed59e1d1-3595485abbbso6522444a91.2\n for <qemu-devel@nongnu.org>; Wed, 22 Apr 2026 03:31:23 -0700 (PDT)",
            "from fedora.armenon-thinkpadp16vgen1.bengluru.csb ([49.36.110.202])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c7976f920e1sm12589666a12.2.2026.04.22.03.31.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 03:31:21 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776853885;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=X5BfOb29CchgA3O8cD3d/CWCo4Ox5ZAg0ea68Q66Ig0=;\n b=b99NzYGUjtX7Zs2+OzhzdceGI3P3nICodgUf2vfhIW9dycgXGfvFeRchxXZz9+5NCcoBaC\n pL9ml+zy4JvHK3gJLwQTT6W8Tao4KSdDOOSmhQ4Jie+gEYZcXk0d1nqdC4qYaqk3MH+vBg\n 2hd8gSq1Zwfrrf+pGikzh/FYV6nn9kI=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1776853883; x=1777458683; 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=X5BfOb29CchgA3O8cD3d/CWCo4Ox5ZAg0ea68Q66Ig0=;\n b=DNLN0uCWNn9mpyBDAvu9NKe9nPTmvRgIgwVfX8jkgUMHp5A53JqnvvZTaMJwTSTupu\n y+JWQaCsHGje3ceRPZrF8z0JtmExpgtqCeQrOeIIHbNPkuO1FbbOnwHcDyiXlpXCs9Gi\n CkYu+ttkfE9BaT0aSxpGZK4f2IslVfIz0Y95hnTZ7i75dUMgwhxBshvk8DnXJlmFn2jd\n VR4r4yCWXm0c/D5gf5twcQkNUoVx/ENRAEbw+3P3mr6h5ZmQlp3Yeuo6hqysP02niNXb\n KgqUxnAWqoNFnCS+uyyUYopH0UOnEuFI8dVhLe3LfKwKaBumJfIQXoZlTFtaNezVDLJN\n 7xwQ=="
        ],
        "X-MC-Unique": "VV1FOndaP9-aScaOa-_now-1",
        "X-Mimecast-MFC-AGG-ID": "VV1FOndaP9-aScaOa-_now_1776853883",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776853883; x=1777458683;\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=X5BfOb29CchgA3O8cD3d/CWCo4Ox5ZAg0ea68Q66Ig0=;\n b=sHw4Vxb3y+aA8SY1Ob49R1MdFdepjDuZeAhUxeaVrYf65NYysGzQH4lQoHjrDxgbQi\n FPYYwg2PWXfPkY/hfNR4UrGGdFKcUaDoHO4FczRvL7MYlmmuCY7/yskYfSPrJBbME/yT\n zHHcJUqvMPNA8SVk9JG9rU93HR1AR7h9z/n/vGi3QjFvbyWnl/JtTq5vTUCAflmRwZXo\n 1HuDDcplUa1e8rQo89M+oIgkQTHzbHoCNsRpBDl0ttme+wgOlHOHvM1MgNV8fFaOmk+K\n 2m1p4cywDGP/hgehImU9FIQCs4jNSRzlWWWrnSlzy4oyVWLyjDG8XX5FWTTbcf+ig43Z\n Jh1w==",
        "X-Gm-Message-State": "AOJu0YyLs7mime7Xp3qVz9RZ4KLe7AsLRi8nYIlNvtnUWOz+LRxGS1Bw\n 6baW0M/pjUaTDOz6ynpiKooDGU/Anb3VOFf7iDRZpD5+ZM7XkX+sSDuKcu4eEgE85u5qyiyImP0\n 0sQGWHyR2/1IgGo5iT4A2o4/EgiYK3TGnusUNUYPv0vZzUhOtSRkQd82V+Osn+HxDmjhF6xkl5Z\n +WKPZQcw+jKyRKg3TwPAcw4+ZFM9O4niz55NMTMDA=",
        "X-Gm-Gg": "AeBDieureMckw4OTNEh3eC4mKTIQ4tMkw894qDZWj7eE1PwmFqhd+Prh0NjvKVaOtyF\n g029NwVCqH4/0CfnSpDvWr470KNJslFA+DekpK4LCxI+5frf8DyAk1WFcqfpb/6WygkMxSzmq9W\n 5eB1KgIKlSvN6RRLBVdfH+Wq6/PgIDr10BH1vVLzHaA81Vtt0rz+wQj/iAiqggrlynXNUKMoQaa\n wJKFgGwjKqpJjbwB8sBfoO1q8FoMp36F7MS1IHtURkxIIhRO3CtVNSczNAp9PmLOE+gId5McUEz\n 8Fq/dphRYKyEOMwO9+g2qa+FQkkmOEyPPeFiWfSJeRBtbVo8hZ9O1xtCNHsOmFr9g8yewDw3NJD\n cdDtwlzW8ZmJ4vkzOvYddFU8+Xqx7PXumtEvPqDxWGUX6X0sf/rtDBnkHJodLrEZkjb8U4zGT9w\n ==",
        "X-Received": [
            "by 2002:a05:6a20:e211:b0:3a2:7ef4:81df with SMTP id\n adf61e73a8af0-3a27ef485b0mr14887062637.26.1776853882370;\n Wed, 22 Apr 2026 03:31:22 -0700 (PDT)",
            "by 2002:a05:6a20:e211:b0:3a2:7ef4:81df with SMTP id\n adf61e73a8af0-3a27ef485b0mr14886993637.26.1776853881738;\n Wed, 22 Apr 2026 03:31:21 -0700 (PDT)"
        ],
        "From": "Arun Menon <armenon@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Zhao Liu <zhao1.liu@intel.com>,\n Stefan Berger <stefanb@linux.vnet.ibm.com>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n Fabiano Rosas <farosas@suse.de>, Igor Mammedov <imammedo@redhat.com>,\n marcandre.lureau@redhat.com,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n \"Michael S. Tsirkin\" <mst@redhat.com>, Yanan Wang <wangyanan55@huawei.com>,\n Ani Sinha <anisinha@redhat.com>, Arun Menon <armenon@redhat.com>,\n Stefan Berger <stefanb@linux.ibm.com>",
        "Subject": "[PATCH v5 09/10] tpm: Extend TPM TIS buffer size to 8192 bytes",
        "Date": "Wed, 22 Apr 2026 16:00:17 +0530",
        "Message-ID": "<20260422103018.123608-10-armenon@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260422103018.123608-1-armenon@redhat.com>",
        "References": "<20260422103018.123608-1-armenon@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=170.10.133.124; envelope-from=armenon@redhat.com;\n helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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": "From: Stefan Berger <stefanb@linux.ibm.com>\n\nExtend the TIS buffer size to 8192 bytes and store the first 4096 bytes\nusing VMSTATE_PARTIAL_BUFFER and the rest using VMSTATE_BUFFER_START_MIDDLE\nwhen necessary. It is necessary to store the buffer beyond original 4096\nbytes when:\n\n - the user has written more than 4096 bytes to the buffer\n - the TPM 2 response is larger than 4096 bytes\n\nUse the .needed function of the VMStateDescription interface to check\nwhether the bytes in the buffer beyond 4096 bytes needed to be saved.\nThe .pre_save function is called before the .needed function so that we\ncan be sure to have received any response packet from the TPM.\n\nSigned-off-by: Stefan Berger <stefanb@linux.ibm.com>\n[ Arun Menon - Removed WIP tag and TODO for submission ]\nSigned-off-by: Arun Menon <armenon@redhat.com>\n---\n hw/tpm/tpm_tis.h        |  2 ++\n hw/tpm/tpm_tis_common.c | 23 +++++++++++++++++++++++\n hw/tpm/tpm_tis_i2c.c    | 24 +++++++++++++++++++++++-\n hw/tpm/tpm_tis_isa.c    | 24 +++++++++++++++++++++++-\n hw/tpm/tpm_tis_sysbus.c | 24 +++++++++++++++++++++++-\n 5 files changed, 94 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/hw/tpm/tpm_tis.h b/hw/tpm/tpm_tis.h\nindex 184632ff66..d35c332287 100644\n--- a/hw/tpm/tpm_tis.h\n+++ b/hw/tpm/tpm_tis.h\n@@ -90,4 +90,6 @@ uint32_t tpm_tis_read_data(TPMState *s, hwaddr addr, unsigned size);\n void tpm_tis_write_data(TPMState *s, hwaddr addr, uint64_t val, uint32_t size);\n uint16_t tpm_tis_get_checksum(TPMState *s);\n \n+bool tpm_tis_ext_buffer_migration_needed(struct TPMState *s);\n+\n #endif /* TPM_TPM_TIS_H */\ndiff --git a/hw/tpm/tpm_tis_common.c b/hw/tpm/tpm_tis_common.c\nindex f594b15b8a..dffb0a411e 100644\n--- a/hw/tpm/tpm_tis_common.c\n+++ b/hw/tpm/tpm_tis_common.c\n@@ -890,3 +890,26 @@ const VMStateDescription vmstate_locty = {\n     }\n };\n \n+bool tpm_tis_ext_buffer_migration_needed(struct TPMState *s)\n+{\n+    if (!TPM_TIS_IS_VALID_LOCTY(s->active_locty)) {\n+        return false;\n+    }\n+\n+    switch (s->loc[s->active_locty].state) {\n+    case TPM_TIS_STATE_IDLE:\n+    case TPM_TIS_STATE_READY:\n+        return false;\n+    case TPM_TIS_STATE_RECEPTION:\n+        return s->rw_offset >= 4096;\n+    case TPM_TIS_STATE_EXECUTION:\n+        /*\n+         * TPM is executing: we cannot know the size of TPM response.\n+         * .pre_save must have been called before (should never get here).\n+         */\n+        return false;\n+    case TPM_TIS_STATE_COMPLETION:\n+        return (tpm_cmd_get_size(&s->buffer) >= 4096);\n+    }\n+    return false;\n+}\ndiff --git a/hw/tpm/tpm_tis_i2c.c b/hw/tpm/tpm_tis_i2c.c\nindex 9f13e0ec12..a01df7e5a0 100644\n--- a/hw/tpm/tpm_tis_i2c.c\n+++ b/hw/tpm/tpm_tis_i2c.c\n@@ -110,13 +110,31 @@ static int tpm_tis_i2c_post_load(void *opaque, int version_id)\n     return 0;\n }\n \n+static bool tpm_tis_ext_buffer_migration_needed_i2c(void *opaque)\n+{\n+    TPMStateI2C *i2cst = opaque;\n+\n+    return tpm_tis_ext_buffer_migration_needed(&i2cst->state);\n+}\n+\n+static const VMStateDescription vmstate_tpm_tis_ext_buffer_i2c = {\n+    .name = \"tpm-tis/ext_buffer\",\n+    .version_id = 0,\n+    .needed = tpm_tis_ext_buffer_migration_needed_i2c,\n+    .pre_save = tpm_tis_i2c_pre_save,\n+    .fields = (const VMStateField[]) {\n+        VMSTATE_BUFFER_START_MIDDLE(state.buffer, TPMStateI2C, 4096),\n+        VMSTATE_END_OF_LIST()\n+    }\n+};\n+\n static const VMStateDescription vmstate_tpm_tis_i2c = {\n     .name = \"tpm-tis-i2c\",\n     .version_id = 0,\n     .pre_save  = tpm_tis_i2c_pre_save,\n     .post_load  = tpm_tis_i2c_post_load,\n     .fields = (const VMStateField[]) {\n-        VMSTATE_BUFFER(state.buffer, TPMStateI2C),\n+        VMSTATE_PARTIAL_BUFFER(state.buffer, TPMStateI2C, 4096),\n         VMSTATE_UINT16(state.rw_offset, TPMStateI2C),\n         VMSTATE_UINT8(state.active_locty, TPMStateI2C),\n         VMSTATE_UINT8(state.aborting_locty, TPMStateI2C),\n@@ -133,6 +151,10 @@ static const VMStateDescription vmstate_tpm_tis_i2c = {\n         VMSTATE_UINT8(csum_enable, TPMStateI2C),\n \n         VMSTATE_END_OF_LIST()\n+    },\n+    .subsections = (const VMStateDescription *const[]) {\n+        &vmstate_tpm_tis_ext_buffer_i2c,\n+        NULL,\n     }\n };\n \ndiff --git a/hw/tpm/tpm_tis_isa.c b/hw/tpm/tpm_tis_isa.c\nindex 61e95434f5..73038f1a10 100644\n--- a/hw/tpm/tpm_tis_isa.c\n+++ b/hw/tpm/tpm_tis_isa.c\n@@ -49,12 +49,30 @@ static int tpm_tis_pre_save_isa(void *opaque)\n     return tpm_tis_pre_save(&isadev->state);\n }\n \n+static bool tpm_tis_ext_buffer_migration_needed_isa(void *opaque)\n+{\n+    TPMStateISA *isadev = opaque;\n+\n+    return tpm_tis_ext_buffer_migration_needed(&isadev->state);\n+}\n+\n+static const VMStateDescription vmstate_tpm_tis_ext_buffer_isa = {\n+    .name = \"tpm-tis/ext_buffer\",\n+    .version_id = 0,\n+    .needed = tpm_tis_ext_buffer_migration_needed_isa,\n+    .pre_save = tpm_tis_pre_save_isa,\n+    .fields = (const VMStateField[]) {\n+        VMSTATE_BUFFER_START_MIDDLE(state.buffer, TPMStateISA, 4096),\n+        VMSTATE_END_OF_LIST()\n+    }\n+};\n+\n static const VMStateDescription vmstate_tpm_tis_isa = {\n     .name = \"tpm-tis\",\n     .version_id = 0,\n     .pre_save  = tpm_tis_pre_save_isa,\n     .fields = (const VMStateField[]) {\n-        VMSTATE_BUFFER(state.buffer, TPMStateISA),\n+        VMSTATE_PARTIAL_BUFFER(state.buffer, TPMStateISA, 4096),\n         VMSTATE_UINT16(state.rw_offset, TPMStateISA),\n         VMSTATE_UINT8(state.active_locty, TPMStateISA),\n         VMSTATE_UINT8(state.aborting_locty, TPMStateISA),\n@@ -64,6 +82,10 @@ static const VMStateDescription vmstate_tpm_tis_isa = {\n                              vmstate_locty, TPMLocality),\n \n         VMSTATE_END_OF_LIST()\n+    },\n+    .subsections = (const VMStateDescription *const[]) {\n+        &vmstate_tpm_tis_ext_buffer_isa,\n+        NULL,\n     }\n };\n \ndiff --git a/hw/tpm/tpm_tis_sysbus.c b/hw/tpm/tpm_tis_sysbus.c\nindex e9372e7316..86fc5a592c 100644\n--- a/hw/tpm/tpm_tis_sysbus.c\n+++ b/hw/tpm/tpm_tis_sysbus.c\n@@ -48,12 +48,30 @@ static int tpm_tis_pre_save_sysbus(void *opaque)\n     return tpm_tis_pre_save(&sbdev->state);\n }\n \n+static bool tpm_tis_ext_buffer_migration_needed_sysbus(void *opaque)\n+{\n+    TPMStateSysBus *sbdev = opaque;\n+\n+    return tpm_tis_ext_buffer_migration_needed(&sbdev->state);\n+}\n+\n+static const VMStateDescription vmstate_tpm_tis_ext_buffer_sysbus = {\n+    .name = \"tpm-tis/ext_buffer\",\n+    .version_id = 0,\n+    .needed = tpm_tis_ext_buffer_migration_needed_sysbus,\n+    .pre_save  = tpm_tis_pre_save_sysbus,\n+    .fields = (const VMStateField[]) {\n+        VMSTATE_BUFFER_START_MIDDLE(state.buffer, TPMStateSysBus, 4096),\n+        VMSTATE_END_OF_LIST()\n+    }\n+};\n+\n static const VMStateDescription vmstate_tpm_tis_sysbus = {\n     .name = \"tpm-tis\",\n     .version_id = 0,\n     .pre_save  = tpm_tis_pre_save_sysbus,\n     .fields = (const VMStateField[]) {\n-        VMSTATE_BUFFER(state.buffer, TPMStateSysBus),\n+        VMSTATE_PARTIAL_BUFFER(state.buffer, TPMStateSysBus, 4096),\n         VMSTATE_UINT16(state.rw_offset, TPMStateSysBus),\n         VMSTATE_UINT8(state.active_locty, TPMStateSysBus),\n         VMSTATE_UINT8(state.aborting_locty, TPMStateSysBus),\n@@ -63,6 +81,10 @@ static const VMStateDescription vmstate_tpm_tis_sysbus = {\n                              0, vmstate_locty, TPMLocality),\n \n         VMSTATE_END_OF_LIST()\n+    },\n+    .subsections = (const VMStateDescription *const[]) {\n+        &vmstate_tpm_tis_ext_buffer_sysbus,\n+        NULL,\n     }\n };\n \n",
    "prefixes": [
        "v5",
        "09/10"
    ]
}