Files
qemu/rust
Zhao Liu bb6e3e743a rust/migration: Fix missing name in the VMSD of Migratable<>
The VMStateDescription of Migratable<T> missed the name field, and this
casused segmentation fault in vmstate_save_state_v() when it tries to
write name field by json_writer_str().

Due to the limitation of const, a custom name based on type would be
more difficult. Instead, a straightforward and simple approach is to
have all Migratable<T> instances use the same VMSD name -
"migratable-wrapper".

This is availiable because Migratable<T> is always a field within a
VMSD, and its parent VMSD should have a distinct name.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20251113051937.4017675-3-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-12-27 10:11:10 +01:00
..
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:09 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:10 +01:00
2025-12-27 10:11:09 +01:00
2025-12-27 10:11:10 +01:00
2024-11-05 14:18:15 +01:00