Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218743/?format=api
{ "id": 2218743, "url": "http://patchwork.ozlabs.org/api/patches/2218743/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260401202844.673494-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": "<20260401202844.673494-6-peterx@redhat.com>", "list_archive_url": null, "date": "2026-04-01T20:28:38", "name": "[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/20260401202844.673494-6-peterx@redhat.com/mbox/", "series": [ { "id": 498385, "url": "http://patchwork.ozlabs.org/api/series/498385/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498385", "date": "2026-04-01T20:28:34", "name": "vmstate: Implement VMS_ARRAY_OF_POINTER_AUTO_ALLOC", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498385/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218743/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218743/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=CUXxlMo3;\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=Mcvy7cnQ;\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 4fmGnG27V7z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 07:29:54 +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 1w82BS-0004M9-WF; Wed, 01 Apr 2026 16:29:03 -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 1w82BP-0004Je-Hn\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 16:28:59 -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 1w82BO-00038s-3y\n for qemu-devel@nongnu.org; Wed, 01 Apr 2026 16:28:59 -0400", "from mail-qk1-f200.google.com (mail-qk1-f200.google.com\n [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-616-ix3nJF6WMPmRrwySbQqqCA-1; Wed, 01 Apr 2026 16:28:55 -0400", "by mail-qk1-f200.google.com with SMTP id\n af79cd13be357-8cfbfac0e05so34139685a.1\n for <qemu-devel@nongnu.org>; Wed, 01 Apr 2026 13:28:55 -0700 (PDT)", "from x1.com ([142.189.10.167]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8d2a548a4efsm68194085a.8.2026.04.01.13.28.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2026 13:28:52 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1775075337;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=cqb2TTAmwxd+RL4JJIo+I7R0mtstkhAmAVuvztaMFd0=;\n b=CUXxlMo3FldXypWKTn+6dF8lfTzlzKHAbAq0grzJu0ALELNg9FBeh+hst94BlXxLq8SUCB\n K0QRVuYppJxtCjoU2Euv7Ic3nRKCnJZC1dnZnYjVflnhfuMKU8DgAqV3UbPxBEWaQ5zqU2\n YR8+8Ldeyc1aEbpOi7jgJUFwgndfUr8=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1775075334; x=1775680134; 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=cqb2TTAmwxd+RL4JJIo+I7R0mtstkhAmAVuvztaMFd0=;\n b=Mcvy7cnQ3zyd1MJfEnoRCY34XCZVZLY9j/8K8xTqxMQiO5QfLVXPEd0qMCZuD7TMwk\n 3DPFsOBp6cfhZhhY/XmWVI2zMhU277EYU0sB9/IDwcg3J3jwD9J1Akw9mXUMFcKL1Dvz\n eV21shIOwrnDcGjaA48Rx0szNVy8dxG6fLEKgPd6aqnlftCBJ2rI/xgYUGGh6NF2Qtyi\n AlCnLhMLuxn1os/pEPClbyI9AX5IX3gY7V1puIsALcHhRCDimB2nprYjVZre6eM9E0Ck\n 8xSlo+3uDCpGhh/oUMM6md+67c95oef+OXcGSgvNRitqxLdAeYQ6gSpIQzBVnH2GKGv4\n j5Qw==" ], "X-MC-Unique": "ix3nJF6WMPmRrwySbQqqCA-1", "X-Mimecast-MFC-AGG-ID": "ix3nJF6WMPmRrwySbQqqCA_1775075335", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775075334; x=1775680134;\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=cqb2TTAmwxd+RL4JJIo+I7R0mtstkhAmAVuvztaMFd0=;\n b=EUYKvos3D+CrHsdicTiJB3zt2+O9Lws30vwsQnbTFt0TSF1biqOFkmitrSSc651P71\n VowJgYF9qsoqKevCiEUyboym6i9lc6uI/4X29LwROINR/fqvk84Y2RVlW9/aXPXzzNTk\n Kyr+wKpTMoT82ptZ2vsORhPNBFwaAiGBx3dv9HD2c6terbfV4c79ygT66KXgaPUuGRtv\n IqVOtr0rFpJQPlVOIEvgeQfPBsAGyZFbjxIhOh5p+NgVsrGbWk+qXtz4IGIY5WrK0OKF\n HqpEvxzlAWlAav7JF9woO+QHf/eI7E6qeqRT+DRjZMkCLoNANw3UoxKVXdWcQO662ed0\n ZyTg==", "X-Gm-Message-State": "AOJu0YxzRsF6ABtlfxufgxLtx+w54Oxwv4Wi2bD3s4ujcgAseprO+Qyk\n 4AHNJAW0VzYGB2weOouFxbjiCWSfGVUZViiOTmOQfXR0vNsvxRc2Q+xDwrgSXvtF6jRQnMcKBma\n bVMf/wD16AMM3wa/9h+OLH6oozSvBuFuAGec/nYUcCWeOvy15R2Rng7+pQ6Ua6uqHaOaUHtJaaU\n LRl2rc9AE/1RqYAz8NVI8El+Am9okbhyAU0A1SNA==", "X-Gm-Gg": "ATEYQzxfcvSQix+11BAFf9FqaW2OUxCUp0HxoPtwF7CQuRXQOlqlROMd8svckeKHFqP\n uwqsymXC5JrsWcXYHcudcHXyXceFu0w1N3TzKx7deZk077pYKIwWLQfNq/V0V00QT+6iTBLPuEl\n 9SJcgb3M2Bhlo7DM3mTI/PBMHiEkrazvUt57/0vgACnxrLeeBae5QX+Sl4SIQy8153L6fo8ljQK\n MIGI5m4SawqhIpSJpLK5+N+MjHHqHU6wjWUeHZpjVrOFiAr398dssS0GWkfi4TnXOOs4ADJCuK9\n VdQAg0NYJFVFUmssD+syo6fwf3g3St6KYuR6bCIxzAfSIXdCp4P+2YApJS4l2sYafvRkKJjS/Oy\n Kv2GH5go5EM7lzeQoiWOU1PQpqyZc97soUou7RS5cIWA=", "X-Received": [ "by 2002:a05:620a:d83:b0:8cf:d0bd:bc8c with SMTP id\n af79cd13be357-8d1aa3bf9admr1212628785a.12.1775075334356;\n Wed, 01 Apr 2026 13:28:54 -0700 (PDT)", "by 2002:a05:620a:d83:b0:8cf:d0bd:bc8c with SMTP id\n af79cd13be357-8d1aa3bf9admr1212625185a.12.1775075333687;\n Wed, 01 Apr 2026 13:28:53 -0700 (PDT)" ], "From": "Peter Xu <peterx@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "Juraj Marcin <jmarcin@redhat.com>,\n Alexander Mikhalitsyn <alexander@mihalicyn.com>,\n Fabiano Rosas <farosas@suse.de>, Peter Xu <peterx@redhat.com>,\n Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>, =?utf-8?q?Phi?=\n\t=?utf-8?q?lippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>", "Subject": "[PATCH 05/11] vmstate: Rename VMS_NULLPTR_MARKER to\n VMS_MARKER_PTR_NULL", "Date": "Wed, 1 Apr 2026 16:28:38 -0400", "Message-ID": "<20260401202844.673494-6-peterx@redhat.com>", "X-Mailer": "git-send-email 2.50.1", "In-Reply-To": "<20260401202844.673494-1-peterx@redhat.com>", "References": "<20260401202844.673494-1-peterx@redhat.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "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": "-6", "X-Spam_score": "-0.7", "X-Spam_bar": "/", "X-Spam_report": "(-0.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.54,\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.01,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=1, RCVD_IN_VALIDITY_RPBL_BLOCKED=1,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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\nReviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>\nReviewed-by: Fabiano Rosas <farosas@suse.de>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nSigned-off-by: Peter Xu <peterx@redhat.com>\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 350e62a55a..7396e38531 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": [ "05/11" ] }