aboutsummaryrefslogtreecommitdiff
path: root/python/qemu/utils/accel.py
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-03-18 21:02:13 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-03-21 12:56:00 +0100
commit3baf82e0a17bc037c9c564958a8b90814119d738 (patch)
tree86f58fbaaae1904afd4e030678f63d543d6e0400 /python/qemu/utils/accel.py
parent5006e39cfacbf37e6925239059ae6945e36cf74e (diff)
downloadqemu-3baf82e0a17bc037c9c564958a8b90814119d738.zip
qemu-3baf82e0a17bc037c9c564958a8b90814119d738.tar.gz
qemu-3baf82e0a17bc037c9c564958a8b90814119d738.tar.bz2
rust/vmstate: Re-implement VMState trait for timer binding
At present, Rust side has a timer binding "timer::Timer", so the vmstate for timer should base on that binding instead of the raw "binding::QEMUTimer". It's possible to apply impl_vmstate_transparent for cell::Opaque and then impl_vmstate_forward for timer::Timer. But binding::QEMUTimer shouldn't be used directly, so that vmstate for such raw timer type is useless. Thus, apply impl_vmstate_scalar for timer::Timer. And since Opaque<> is useful, apply impl_vmstate_transparent for cell::Opaque as well. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250318130219.1799170-10-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