Re: [PATCH 05/26] rust: add bindings for interrupt sources

2024-12-09 Thread Zhao Liu
On Mon, Dec 09, 2024 at 01:36:56PM +0100, Paolo Bonzini wrote: > Date: Mon, 9 Dec 2024 13:36:56 +0100 > From: Paolo Bonzini > Subject: [PATCH 05/26] rust: add bindings for interrupt sources > X-Mailer: git-send-email 2.47.1 > > The InterruptSource bindings let us call

[PATCH 05/26] rust: add bindings for interrupt sources

2024-12-09 Thread Paolo Bonzini
The InterruptSource bindings let us call qemu_set_irq() and sysbus_init_irq() as safe code. Interrupt sources, qemu_irq in C code, are pointers to IRQState objects. They are QOM link properties and can be written to outside the control of the device (i.e. from a shared reference); therefore they m