diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2025-03-18 21:02:07 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-21 12:56:00 +0100 |
| commit | c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e (patch) | |
| tree | 047fb65be900ff25188ce0f892acdd0f3beabd71 /rust/qemu-api/src/callbacks.rs | |
| parent | 6ca5c3bedf3265358cf9033577dd30ed865d1cb3 (diff) | |
| download | focaccia-qemu-c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e.tar.gz focaccia-qemu-c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e.zip | |
rust/vmstate: Fix num field when varray flags are set
Array type vmstate has the VMStateField with `num` equals its length. When the varray vmstate is built based a array type, the `num` field should be cleaned to 0, because varray uses `num_offset` instead of `num` to store elements number information. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250318130219.1799170-4-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/callbacks.rs')
0 files changed, 0 insertions, 0 deletions