]> www.infradead.org Git - users/dwmw2/qemu.git/commit
migration: Rename vmstate_info_nullptr
authorFabiano Rosas <farosas@suse.de>
Thu, 9 Jan 2025 18:52:46 +0000 (15:52 -0300)
committerFabiano Rosas <farosas@suse.de>
Thu, 9 Jan 2025 20:39:38 +0000 (17:39 -0300)
commitf52965bf0eeee28e89933264f1a9dbdcdaa76a7e
treea6808a3d444d4e672c70ed648079c31379fc7a81
parent69d1f784569fdb950f2923c3b6d00d7c1b71acc1
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>
migration/vmstate-types.c
scripts/analyze-migration.py