All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] migration: Remove extra type-checking from vmstate macros
@ 2026-07-29 22:52 Fabiano Rosas
  2026-07-29 22:52 ` [PATCH 1/4] migration: Remove VMSTATE_ARRAY_INT32_UNSAFE Fabiano Rosas
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Fabiano Rosas @ 2026-07-29 22:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Xu, Michael S . Tsirkin, Alexandr Moshkov

Hi, this is basically what I ranted about in:
https://lore.kernel.org/r/87jyqeomqz.fsf@suse.de

I'm replacing the per-integer-size type checks with a single "int that
fits in 32bit" check. This allows several lines of duplicated code to
be removed.

I haven't changed the macro names in the device code yet. If this
series gets positive feedback then I'll send per-subsystem patches
doing that.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/2716814081
Also tested:
- migration-test --full --thorough
- x86_64 compat run forwards and backwards for previous 3 QEMU releases
- s390x compat run forwards and backwards for previous 2 QEMU releases
- ppc64 compat run forwards and backwards for previous QEMU release
- migration-test smoke ASAN/UBSAN run

Fabiano Rosas (4):
  migration: Remove VMSTATE_ARRAY_INT32_UNSAFE
  migration: Introduce VMStateOffset
  migration: Remove redundant flags
  migration: Remove duplicate vmstate macros

 include/migration/vmstate.h        | 255 ++++++++++-------------------
 migration/savevm.c                 |  10 +-
 migration/vmstate.c                |  50 ++++--
 rust/bindings/migration-sys/lib.rs |  15 +-
 rust/migration/src/vmstate.rs      |  30 +++-
 rust/tests/tests/vmstate_tests.rs  |  30 ++--
 6 files changed, 177 insertions(+), 213 deletions(-)

-- 
2.53.0



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2026-07-30 16:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 22:52 [PATCH 0/4] migration: Remove extra type-checking from vmstate macros Fabiano Rosas
2026-07-29 22:52 ` [PATCH 1/4] migration: Remove VMSTATE_ARRAY_INT32_UNSAFE Fabiano Rosas
2026-07-30  8:07   ` Vladimir Sementsov-Ogievskiy
2026-07-29 22:52 ` [PATCH 2/4] migration: Introduce VMStateOffset Fabiano Rosas
2026-07-30  8:06   ` Vladimir Sementsov-Ogievskiy
2026-07-30 14:45     ` Fabiano Rosas
2026-07-30 14:35   ` Michael S. Tsirkin
2026-07-30 15:15     ` Fabiano Rosas
2026-07-30 15:23     ` Peter Xu
2026-07-29 22:52 ` [PATCH 3/4] migration: Remove redundant flags Fabiano Rosas
2026-07-30  8:11   ` Vladimir Sementsov-Ogievskiy
2026-07-30  8:23     ` Vladimir Sementsov-Ogievskiy
2026-07-29 22:52 ` [PATCH 4/4] migration: Remove duplicate vmstate macros Fabiano Rosas
2026-07-30  8:19   ` Vladimir Sementsov-Ogievskiy
2026-07-30  8:22 ` [PATCH 0/4] migration: Remove extra type-checking from " Vladimir Sementsov-Ogievskiy
2026-07-30 14:09 ` Peter Xu
2026-07-30 14:22   ` Peter Xu
2026-07-30 14:45     ` Michael S. Tsirkin
2026-07-30 15:50     ` Fabiano Rosas
2026-07-30 16:31       ` Peter Xu
2026-07-30 15:37   ` Fabiano Rosas
2026-07-30 16:16     ` Peter Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.