qemu/rust/hw/timer
Paolo Bonzini 345bef46a1 rust: qom: change instance_init to take a ParentInit<>
This removes undefined behavior associated to writing to uninitialized
fields, and makes it possible to remove "unsafe" from the instance_init
implementation.

However, the init function itself is still unsafe, because it must promise
(as a sort as MaybeUninit::assume_init) that all fields have been
initialized.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-06-17 09:54:52 +02:00
..
hpet rust: qom: change instance_init to take a ParentInit<> 2025-06-17 09:54:52 +02:00
Kconfig rust: Kconfig: Factor out whether HPET is Rust or C 2025-03-20 09:23:24 +01:00
meson.build rust/timer/hpet: define hpet_fw_cfg 2025-02-13 12:51:34 +01:00