diff options
author | Peter Xu <peterx@redhat.com> | 2025-01-14 18:07:46 -0500 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-01-29 11:56:41 -0300 |
commit | a10b37c553391ba6875d95a48f0b3ef7bca7edd1 (patch) | |
tree | 70faf779717898ed35826c3982025d97badeeabb /scripts/python_qmp_updater.py | |
parent | 3dde8fdbad7b8bde82cc22180911b9c751bd1979 (diff) | |
download | qemu-a10b37c553391ba6875d95a48f0b3ef7bca7edd1.zip qemu-a10b37c553391ba6875d95a48f0b3ef7bca7edd1.tar.gz qemu-a10b37c553391ba6875d95a48f0b3ef7bca7edd1.tar.bz2 |
migration: Trivial cleanup on JSON writer of vmstate_save()
Two small cleanups in the same section of vmstate_save():
- Check vmdesc before the "mixed null/non-null data in array" logic, to
be crystal clear that it's only about the JSON writer, not the vmstate on
its own in the migration stream.
- Since we have is_null variable now, use that to replace a check.
Signed-off-by: Peter Xu <peterx@redhat.com>
Tested-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Juraj Marcin <jmarcin@redhat.com>
Link: https://lore.kernel.org/r/20250114230746.3268797-17-peterx@redhat.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'scripts/python_qmp_updater.py')
0 files changed, 0 insertions, 0 deletions