aboutsummaryrefslogtreecommitdiff
path: root/python/qemu/utils/accel.py
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-03-18 21:02:15 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-03-21 12:56:00 +0100
commit1998502196ad81fde58a48aac2256731bf6d0022 (patch)
tree24b8bc2874a5ab3e54ff4ba61689803baf86322d /python/qemu/utils/accel.py
parentb13100372180fdb052aa6bbce663eea0c59e5db4 (diff)
downloadqemu-1998502196ad81fde58a48aac2256731bf6d0022.zip
qemu-1998502196ad81fde58a48aac2256731bf6d0022.tar.gz
qemu-1998502196ad81fde58a48aac2256731bf6d0022.tar.bz2
rust/vmstate: Add unit test for vmstate_of macro
The vmstate has too many combinations of VMStateFlags and VMStateField. Currently, the best way to test is to ensure that the Rust vmstate definition is consistent with the (possibly corresponding) C version. Add a unit test to cover some patterns accepted by vmstate_of macro, which correspond to the following C version macros: * VMSTATE_U16 * VMSTATE_UNUSED * VMSTATE_VARRAY_UINT16_UNSAFE * VMSTATE_VARRAY_MULTIPLY Note: Because vmstate_info_* are defined in vmstate-types.c, it's necessary to link libmigration to rust unit tests. In the future, maybe it's possible to spilt libmigration from rust_qemu_api_objs. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250318130219.1799170-12-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python/qemu/utils/accel.py')
0 files changed, 0 insertions, 0 deletions