qemu/rust/hw/char/pl011
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
..
src rust: qom: change instance_init to take a ParentInit<> 2025-06-17 09:54:52 +02:00
Cargo.toml rust: pl011: use the bits macro 2025-06-03 22:44:40 +02:00
meson.build rust: pl011: use the bits macro 2025-06-03 22:44:40 +02:00