rust: qdev: move bridge for realize and reset functions out of pl011
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Nov 2024 16:08:07 +0000 (17:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Dec 2024 17:49:26 +0000 (18:49 +0100)
commitf75fb90ff2af75cd4405fe4c6ba0c0c38a120590
tree9d5b104b61ae9dd8154401040228d8782ad428e0
parent8c80c472da6342c5924bc4ea7e87c77ca61477b8
rust: qdev: move bridge for realize and reset functions out of pl011

Allow the DeviceImpl trait to expose safe Rust functions.
rust_device_class_init<> adds thunks around the functions
in DeviceImpl.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/hw/char/pl011/src/device_class.rs
rust/qemu-api/src/definitions.rs
rust/qemu-api/src/device_class.rs