qemu/rust/qemu-api/src
Zhao Liu 0f9eb0ff2b rust/qdev: Make REALIZE safe
A safe REALIZE accepts immutable reference.

Since current PL011's realize() only calls a char binding function (
qemu_chr_fe_set_handlers), it is possible to convert mutable reference
(&mut self) to immutable reference (&self), which only needs to convert
the pointers passed to C to mutable pointers.

Thus, make REALIZE accept immutable reference.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250121140457.84631-2-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-23 11:50:53 +01:00
..
assertions.rs rust: add a utility module for compile-time type checks 2025-01-10 23:34:43 +01:00
bindings.rs rust: build: establish a baseline of lints across all crates 2024-12-10 18:44:06 +01:00
bitops.rs rust: add a bit operation module 2024-12-10 18:49:26 +01:00
c_str.rs rust: introduce a c_str macro 2024-11-05 14:18:16 +01:00
callbacks.rs rust: qemu-api: add a module to wrap functions and zero-sized closures 2024-12-19 19:36:37 +01:00
cell.rs bql: add a "mock" BQL for Rust unit tests 2024-12-19 19:36:37 +01:00
irq.rs rust: qdev: expose inherited methods to subclasses of SysBusDevice 2025-01-10 23:34:44 +01:00
lib.rs rust: add a utility module for compile-time type checks 2025-01-10 23:34:43 +01:00
module.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
offset_of.rs rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
prelude.rs rust: qdev: expose inherited methods to subclasses of SysBusDevice 2025-01-10 23:34:44 +01:00
qdev.rs rust/qdev: Make REALIZE safe 2025-01-23 11:50:53 +01:00
qom.rs rust: qom: make INSTANCE_POST_INIT take a shared reference 2025-01-10 23:34:43 +01:00
sysbus.rs rust: qdev: expose inherited methods to subclasses of SysBusDevice 2025-01-10 23:34:44 +01:00
vmstate.rs rust: pl011: fix migration stream 2024-12-19 19:36:38 +01:00
zeroable.rs rust: fix doc test syntax 2024-12-10 18:49:24 +01:00