qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 07/12] rust: pl011: only leave embedded object initialization


From: Zhao Liu
Subject: Re: [PATCH 07/12] rust: pl011: only leave embedded object initialization in instance_init
Date: Thu, 26 Dec 2024 11:20:16 +0800

On Fri, Dec 20, 2024 at 03:29:49PM +0100, Paolo Bonzini wrote:
> Date: Fri, 20 Dec 2024 15:29:49 +0100
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH 07/12] rust: pl011: only leave embedded object
>  initialization in instance_init
> X-Mailer: git-send-email 2.47.1
> 
> Leave IRQ and MMIO initialization to instance_post_init.  In Rust the
> two callbacks are more distinct, because only instance_post_init has a
> fully initialized object available.
> 
> While at it, add a wrapper for sysbus_init_mmio so that accesses to
> the SysBusDevice correctly use shared references.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  rust/hw/char/pl011/src/device.rs | 18 ++++++++++--------
>  rust/qemu-api/src/sysbus.rs      | 12 ++++++++++++
>  2 files changed, 22 insertions(+), 8 deletions(-)
> 

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]