]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust/hpet: change type of num_timers to usize
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 May 2025 11:52:11 +0000 (13:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jun 2025 12:32:54 +0000 (14:32 +0200)
commitb3bf86b8936dbca8689623d22b8955e071143a5e
treedd1272f55c65646da51903ca1e1eb90d9de2a8ee
parent4b66abead9c9c7b637fb87e6bf782a45eee2a621
rust/hpet: change type of num_timers to usize

Remove the need to convert after every read of the BqlCell.  Because the
vmstate uses a u8 as the size of the VARRAY, this requires switching
the VARRAY to use num_timers_save; which in turn requires ensuring that
the num_timers_save is always there.  For simplicity do this by
removing support for version 1, which QEMU has not been producing for
~15 years.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/timer/hpet/src/device.rs