Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216584/?format=api
{ "id": 2216584, "url": "http://patchwork.ozlabs.org/api/patches/2216584/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260326210532.379027-6-peterx@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": "<20260326210532.379027-6-peterx@redhat.com>", "list_archive_url": null, "date": "2026-03-26T21:05:26", "name": "[RFC,v2,05/11] vmstate: Rename VMS_NULLPTR_MARKER to VMS_MARKER_PTR_NULL", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "2b5fb6fa35bc435703c228befa4b95724316ca40", "submitter": { "id": 67717, "url": "http://patchwork.ozlabs.org/api/people/67717/?format=api", "name": "Peter Xu", "email": "peterx@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260326210532.379027-6-peterx@redhat.com/mbox/", "series": [ { "id": 497651, "url": "http://patchwork.ozlabs.org/api/series/497651/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497651", "date": "2026-03-26T21:05:22", "name": "vmstate: Implement VMS_ARRAY_OF_POINTER_AUTO_ALLOC", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/497651/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216584/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216584/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=VV2+cRlo;\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=sh9mx+v1;\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 (lists.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 4fhbv15rRMz1yFr\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 08:07:09 +1100 (AEDT)", "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 1w5rtp-00049j-9i; Thu, 26 Mar 2026 17:05:53 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peterx@redhat.com>) id 1w5rtm-00048X-4I\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 17:05:50 -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 <peterx@redhat.com>) id 1w5rtk-00037H-Kl\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 17:05:49 -0400", "from mail-qk1-f197.google.com (mail-qk1-f197.google.com\n [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-258-VcdlYRRYOdeOgc31V-LK1w-1; Thu, 26 Mar 2026 17:05:44 -0400", "by mail-qk1-f197.google.com with SMTP id\n af79cd13be357-8cfc5294894so464496585a.1\n for <qemu-devel@nongnu.org>; Thu, 26 Mar 2026 14:05:44 -0700 (PDT)", "from x1.com ([142.189.10.167]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8d00e4fa7d9sm353479785a.32.2026.03.26.14.05.41\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 14:05:41 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774559148;\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=V+2bKn7od5XGyVQRVijnjbeo3YuBsl9Tu9Y2/7dq7ZE=;\n b=VV2+cRloVC3gjMYTw+OwStDWxGNVjM0FMS0gCcFEy/NfpaKDOFaA0FaXIPvTACfMHfQLBH\n L8dXr5TEX2jdmLcu61A6C9QfiPi8t7Fctm9SnjbAnA40E6/YhYi7FkhdBI8VepTn4qP06T\n E1QEV+3b/IUWweigrCvDnu6engVjCTc=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1774559143; x=1775163943; 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=V+2bKn7od5XGyVQRVijnjbeo3YuBsl9Tu9Y2/7dq7ZE=;\n b=sh9mx+v1hi5VzL21gP7Bq6qz+Ahk2NLbX69r61D/xxyQ8TzwTZe+RBTneCehlESfhU\n POEFIteCiXwWDl602m2e/7H/jHYB6Y1SJ6I7HGRbme7q5WJHGZ5U2uM3iNB07bfl/W0o\n xdUvZiTddrtIaSB3D61FwyLAZ0ubWaQjl/VI5dDXZY66sdUdZyhwzM8e/zEibBO5Zaeg\n 5z5L6t8pNMBnIstTTECQcUJMFdBkjG0mvbb1xy4/FiZJaAouvRQuI90LqUnoW7rB1TDE\n GOlfUpob+pzHeoC7U6HeLa4cBqfOyG0Z5D9aHVBBplqH/2R9VR7Jh0zMHJWixD1jYfjC\n jcfw==" ], "X-MC-Unique": "VcdlYRRYOdeOgc31V-LK1w-1", "X-Mimecast-MFC-AGG-ID": "VcdlYRRYOdeOgc31V-LK1w_1774559144", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774559143; x=1775163943;\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=V+2bKn7od5XGyVQRVijnjbeo3YuBsl9Tu9Y2/7dq7ZE=;\n b=HgTJkWymrysocXEuThpIPIuJPtbfqtiyAXXhUJnwIudhZqawczxhNYS9QLARgSd4rM\n T+zcG6SR32fh3JmEqaD1wHrnyrLEYy3R6YGIr0OEEewe4ytkR/gxLp0uUZEbZCgZjeHL\n JPcoHiSFLXJUti/aep1sDBC6hDeLASZ/LSvjw34UVah4xRV0LKNFi/Vl9KAVR06g/wL5\n Zhvan6aJtChKhDuta43WF4AvQrYEt7o3Y5C/W144q6PY3QLXqcWaeQmwYGimRKEL86v4\n EkFCRHj+3w3l4Uc689IsSLue2iZT9/5ni3+tg2EI5yLFPJCsHem/GJI8BhJiuCNnRLAh\n 3A1Q==", "X-Gm-Message-State": "AOJu0Yy4v4UUDCv1Ff3onkpuQBFLpvXbUA+VD9JUQU9caN1LcwGhzKul\n UAFh388hyS7x4ln/Pj3dGRv0SL+qXKIdKQgQpfrcztrbOv/YUXk2EAGqCu9U05H191zdtSLfzP6\n hGAq9SloeuGpkqv2dSBAWVFq0SIsqGtakprEHfL4ESc2Qx0JOUeo0w3NieUiqO+KjqL+fHSn0kv\n GIg3XfXxSRi+82+KeL3sigAGHgR3xQiQH2qe399g==", "X-Gm-Gg": "ATEYQzyOuSva5yUAyyItDjgyBZh/WsSt4Ju/N4ebHFii1zYkXoy1qkrl/ZHyAwRFUyF\n bk3AsHSEvOKCXSgUQtMCm/WalyGmYj2weD7n9dpbjjzvBbam1oJmnm2aP2oOowLUSIJoxGqUzdX\n URSW3gmbCWlEn/DjI0q60x1LWtZTJx4WwK95CDoNPYC5lUZkfGH/vQJsjvmOl+KtjIj4Nf4nZU2\n Yy5371bQXPybl4QMXE1k9DnMTQGvocYp8ta2Yk0InhZdDK4Jr35Isf64xB+xxx4WcUf054JuKyO\n CxY+CXCJ7ntE9np9pU8FEcSWQl5bgUaJOHfgd+rMnuKeA/jN1pm7yWfqGammgRjpjx0iPUntTV3\n csADd+aUHUn8=", "X-Received": [ "by 2002:a05:620a:46a5:b0:8cf:d441:c7c3 with SMTP id\n af79cd13be357-8d001012bbbmr1230781885a.39.1774559143525;\n Thu, 26 Mar 2026 14:05:43 -0700 (PDT)", "by 2002:a05:620a:46a5:b0:8cf:d441:c7c3 with SMTP id\n af79cd13be357-8d001012bbbmr1230775485a.39.1774559142905;\n Thu, 26 Mar 2026 14:05:42 -0700 (PDT)" ], "From": "Peter Xu <peterx@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "Alexander Mikhalitsyn <alexander@mihalicyn.com>, peterx@redhat.com,\n Fabiano Rosas <farosas@suse.de>, Juraj Marcin <jmarcin@redhat.com>,\n Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>", "Subject": "[PATCH RFC v2 05/11] vmstate: Rename VMS_NULLPTR_MARKER to\n VMS_MARKER_PTR_NULL", "Date": "Thu, 26 Mar 2026 17:05:26 -0400", "Message-ID": "<20260326210532.379027-6-peterx@redhat.com>", "X-Mailer": "git-send-email 2.50.1", "In-Reply-To": "<20260326210532.379027-1-peterx@redhat.com>", "References": "<20260326210532.379027-1-peterx@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=170.10.133.124; envelope-from=peterx@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, RCVD_IN_MSPIKE_H2=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, 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": "Prepare for a new MARKER for non-NULL pointer.\n\nSigned-off-by: Peter Xu <peterx@redhat.com>\nReviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>\n---\n include/migration/vmstate.h | 2 +-\n migration/vmstate-types.c | 4 ++--\n tests/unit/test-vmstate.c | 2 +-\n 3 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h\nindex b4bc69486d..092e8f7e9a 100644\n--- a/include/migration/vmstate.h\n+++ b/include/migration/vmstate.h\n@@ -283,7 +283,7 @@ extern const VMStateInfo vmstate_info_uint64;\n extern const VMStateInfo vmstate_info_fd;\n \n /** Put this in the stream when migrating a null pointer.*/\n-#define VMS_NULLPTR_MARKER (0x30U) /* '0' */\n+#define VMS_MARKER_PTR_NULL (0x30U) /* '0' */\n extern const VMStateInfo vmstate_info_nullptr;\n \n extern const VMStateInfo vmstate_info_cpudouble;\ndiff --git a/migration/vmstate-types.c b/migration/vmstate-types.c\nindex 23f3433696..7622cf8f01 100644\n--- a/migration/vmstate-types.c\n+++ b/migration/vmstate-types.c\n@@ -363,7 +363,7 @@ static bool load_nullptr(QEMUFile *f, void *pv, size_t size,\n const VMStateField *field, Error **errp)\n \n {\n- if (qemu_get_byte(f) == VMS_NULLPTR_MARKER) {\n+ if (qemu_get_byte(f) == VMS_MARKER_PTR_NULL) {\n return true;\n }\n \n@@ -377,7 +377,7 @@ static bool save_nullptr(QEMUFile *f, void *pv, size_t size,\n \n {\n if (pv == NULL) {\n- qemu_put_byte(f, VMS_NULLPTR_MARKER);\n+ qemu_put_byte(f, VMS_MARKER_PTR_NULL);\n return true;\n }\n \ndiff --git a/tests/unit/test-vmstate.c b/tests/unit/test-vmstate.c\nindex 6a42cc1a4e..dae15786aa 100644\n--- a/tests/unit/test-vmstate.c\n+++ b/tests/unit/test-vmstate.c\n@@ -620,7 +620,7 @@ static void test_arr_ptr_str_no0_load(void)\n \n static uint8_t wire_arr_ptr_0[] = {\n 0x00, 0x00, 0x00, 0x00,\n- VMS_NULLPTR_MARKER,\n+ VMS_MARKER_PTR_NULL,\n 0x00, 0x00, 0x00, 0x02,\n 0x00, 0x00, 0x00, 0x03,\n QEMU_VM_EOF\n", "prefixes": [ "RFC", "v2", "05/11" ] }