On Thu, Feb 27, 2025 at 03:22:12PM +0100, Paolo Bonzini wrote:
> Date: Thu, 27 Feb 2025 15:22:12 +0100
> From: Paolo Bonzini <[email protected]>
> Subject: [PATCH 05/12] rust: irq: wrap IRQState with Opaque<>
> X-Mailer: git-send-email 2.48.1
>
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
> rust/qemu-api/src/irq.rs | 15 ++++++++++-----
> rust/qemu-api/src/sysbus.rs | 1 +
> 2 files changed, 11 insertions(+), 5 deletions(-)
...
> +///
> /// Interrupts are implemented as a pointer to the interrupt "sink", which
> has
> /// type [`IRQState`]. A device exposes its source as a QOM link property
> using
> /// a function such as [`SysBusDeviceMethods::init_irq`], and
> @@ -40,7 +45,7 @@ pub struct InterruptSource<T = bool>
> where
> c_int: From<T>,
> {
> - cell: BqlCell<*mut IRQState>,
> + cell: BqlCell<*mut bindings::IRQState>,
> _marker: PhantomData<T>,
> }
Thanks! Reviewed-by: Zhao Liu <[email protected]>