summary refs log tree commit diff stats
path: root/migration/vmstate-types.c
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2025-01-09 15:52:46 -0300
committerFabiano Rosas <farosas@suse.de>2025-01-09 17:39:38 -0300
commitf52965bf0eeee28e89933264f1a9dbdcdaa76a7e (patch)
treea6808a3d444d4e672c70ed648079c31379fc7a81 /migration/vmstate-types.c
parent69d1f784569fdb950f2923c3b6d00d7c1b71acc1 (diff)
downloadfocaccia-qemu-f52965bf0eeee28e89933264f1a9dbdcdaa76a7e.tar.gz
focaccia-qemu-f52965bf0eeee28e89933264f1a9dbdcdaa76a7e.zip
migration: Rename vmstate_info_nullptr
Rename vmstate_info_nullptr from "uint64_t" to "nullptr". This vmstate
actually reads and writes just a byte, so the proper name would be
uint8. However, since this is a marker for a NULL pointer, it's
convenient to have a more explicit name that can be identified by the
consumers of the JSON part of the stream.

Change the name to "nullptr" and add support for it in the
analyze-migration.py script. Arbitrarily use the name of the type as
the value of the field to avoid the script showing 0x30 or '0', which
could be confusing for readers.

Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20250109185249.23952-5-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/vmstate-types.c')
-rw-r--r--migration/vmstate-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/vmstate-types.c b/migration/vmstate-types.c
index e83bfccb9e..d70d573dbd 100644
--- a/migration/vmstate-types.c
+++ b/migration/vmstate-types.c
@@ -338,7 +338,7 @@ static int put_nullptr(QEMUFile *f, void *pv, size_t size,
 }
 
 const VMStateInfo vmstate_info_nullptr = {
-    .name = "uint64",
+    .name = "nullptr",
     .get  = get_nullptr,
     .put  = put_nullptr,
 };