qemu/rust
Paolo Bonzini b3bf86b893 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>
2025-06-06 14:32:54 +02:00
..
bits rust: add "bits", a custom bitflags implementation 2025-06-03 22:44:40 +02:00
hw rust/hpet: change type of num_timers to usize 2025-06-06 14:32:54 +02:00
qemu-api rust: qdev: support returning errors from realize 2025-06-06 14:32:53 +02:00
qemu-api-macros rust: qemu-api-macros: add from_bits and into_bits to #[derive(TryInto)] 2025-06-03 22:44:40 +02:00
.gitignore rust: add bindgen step as a meson dependency 2024-10-11 12:32:17 +02:00
Cargo.lock rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Cargo.toml rust: qemu-api: add bindings to Error 2025-06-05 20:24:51 +02:00
Kconfig rust: add PL011 device model 2024-11-05 14:18:15 +01:00
meson.build subprojects: add the foreign crate 2025-06-05 20:24:51 +02:00
rustfmt.toml rust: add crate to expose bindings and interfaces 2024-10-11 12:32:17 +02:00
wrapper.h util/error: expose Error definition to Rust code 2025-06-05 20:24:51 +02:00