qemu/rust/hw
Zhao Liu 8163eeee4e rust/hpet: convert num_timers to u8 type
The C version of HPET uses the uint8_t type for num_timers, and usize
type in Rust version will break migration between the C and Rust
versions.

So convert num_timers' type to u8 (consistent with the C version of
HPET) to make it friendly for vmstate support.

Note the commit 7bda68e8e2 ("qdev, rust/hpet: fix type of HPET
'timers property") supports the usize type property, but the uint8
property has to be re-supported now.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250414144943.1112885-7-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-04-23 10:35:23 +02:00
..
char rust/vmstate: Include complete crate path of VMStateFlags in vmstate_clock 2025-03-21 12:56:00 +01:00
timer rust/hpet: convert num_timers to u8 type 2025-04-23 10:35:23 +02:00
Kconfig i386: enable rust hpet for pc when rust is enabled 2025-02-13 12:51:34 +01:00
meson.build rust/timer/hpet: define hpet_fw_cfg 2025-02-13 12:51:34 +01:00