Skip to content

rust/migration: Remove vmstate_validate!() and VMS_MUST_EXIST

Zhao Liu qemu-devel qemu-rust 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rust/migration: Allow usize as the length of a varrayrust/migration/src/vmstate.rs rust/tests/tests/vmstate_tests.rs+63 -20 replies
2/3rust/hpet: Move vmstate_validate!() check into post_loadrust/hw/timer/hpet/src/device.rs+23 -222 replies
3/3rust/migration: Remove vmstate_validate!() macro and testrust/migration/src/prelude.rs rust/migration/src/vmstate.rs rust/tests/tests/vmstate_tests.rs+8 -1030 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchPeter Xu
1/3
2/3Originally-by
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] rust/migration: Remove vmstate_validate!() and VMS_MUST_EXIST

Hi,

This simple series is based on Peter Xu's series [*] and mainly refines patch 5 — removing vmstate_validate!() from Rust HPET (while maintaining consistency logic with C HPET as much as possible).

I originally planned to use a single patch, but breaking it up this way makes it easier to review. I suppose these three small patches could also replace Peter's patch 5 :-).

There is also some cleanup work left (e.g., support post_load_errp() in Rust); I will address this in some separate patch later (without blocking the current effort to remove vmstate_validate!()).

[*]: https://lore.kernel.org/qemu-devel/[email protected]/

Thanks and Best Regards,
Zhao
---
Zhao Liu (3):
rust/migration: Allow usize as the length of a varray rust/hpet: Move vmstate_validate!() check into post_load rust/migration: Remove vmstate_validate!() macro and test

 rust/hw/timer/hpet/src/device.rs  | 45 +++++++++----------
 rust/migration/src/prelude.rs     |  1 -
 rust/migration/src/vmstate.rs     | 33 ++++++--------
 rust/tests/tests/vmstate_tests.rs | 72 ++++++++++---------------------
 4 files changed, 59 insertions(+), 92 deletions(-)
Signature · 1 line
2.34.1