]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Rename vmstate_info_nullptr
authorFabiano Rosas <farosas@suse.de>
Thu, 9 Jan 2025 18:52:46 +0000 (15:52 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 18 Jan 2025 10:42:56 +0000 (13:42 +0300)
commit575ed2e688dc434d13608140d80ae2b7d0da62c7
treed18e57dffdb584602a9d4ef18a5e82c5e7e4734c
parent7d2122b94acfe26b05691c7d5fe2376ebf558d8d
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>
(cherry picked from commit f52965bf0eeee28e89933264f1a9dbdcdaa76a7e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
migration/vmstate-types.c
scripts/analyze-migration.py