Searched hist:"20797069 c71a90582078448b81de28f227a8403b" (Results 1 – 1 of 1) sorted by relevance
/qemu/rust/qemu-api/src/ |
H A D | vmstate.rs | 20797069c71a90582078448b81de28f227a8403b Tue Mar 18 13:02:08 UTC 2025 Zhao Liu <zhao1.liu@intel.com> rust/vmstate: Fix size field of VMStateField with VMS_ARRAY_OF_POINTER flag
The `size` field of the VMStateField with VMS_ARRAY_OF_POINTER flag should stores the size of pointer, which depends on platform.
Currently, `*const`, `*mut`, `NonNull`, `Box<>` and their wrapper are supported, and they have the same size as `usize`.
Store the size (of `usize`) when VMS_ARRAY_OF_POINTER flag is set.
The size may be changed when more smart pointers are supported, but now the size of "usize" is enough.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250318130219.1799170-5-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|