aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/qdev.rs
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-03-18 21:02:07 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-03-21 12:56:00 +0100
commitc3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e (patch)
tree047fb65be900ff25188ce0f892acdd0f3beabd71 /rust/qemu-api/src/qdev.rs
parent6ca5c3bedf3265358cf9033577dd30ed865d1cb3 (diff)
downloadqemu-c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e.zip
qemu-c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e.tar.gz
qemu-c3d80af5ecf4f00db4a8d3ac5eca6edc0c9f061e.tar.bz2
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/qdev.rs')
0 files changed, 0 insertions, 0 deletions