Re: Referencing domain struct from interrupt handler

2024-05-14 Thread Jens Wiklander
On Tue, May 14, 2024 at 9:12 AM Jan Beulich wrote: > > On 08.05.2024 09:10, Jens Wiklander wrote: > > On Fri, May 3, 2024 at 12:32 PM Jan Beulich wrote: > >> Furthermore, is it guaranteed that the IRQ handler won't interrupt code > >> fiddling with the domain list? I don't think it is, since > >>

Re: Referencing domain struct from interrupt handler

2024-05-14 Thread Jan Beulich
On 08.05.2024 09:10, Jens Wiklander wrote: > On Fri, May 3, 2024 at 12:32 PM Jan Beulich wrote: >> Furthermore, is it guaranteed that the IRQ handler won't interrupt code >> fiddling with the domain list? I don't think it is, since >> domlist_update_lock isn't acquired in an IRQ-safe manner. Looks

Re: Referencing domain struct from interrupt handler

2024-05-08 Thread Jens Wiklander
Hi Jan, On Fri, May 3, 2024 at 12:32 PM Jan Beulich wrote: > > On 03.05.2024 09:45, Jens Wiklander wrote: > > Hi Xen maintainers, > > > > In my patch series [XEN PATCH v4 0/5] FF-A notifications [1] I need to > > get a reference to a domain struct from a domain ID and keep it from > > being destr

Re: Referencing domain struct from interrupt handler

2024-05-03 Thread Jan Beulich
On 03.05.2024 09:45, Jens Wiklander wrote: > Hi Xen maintainers, > > In my patch series [XEN PATCH v4 0/5] FF-A notifications [1] I need to > get a reference to a domain struct from a domain ID and keep it from > being destroyed while using it in the interrupt handler > notif_irq_handler() (introd

Referencing domain struct from interrupt handler

2024-05-03 Thread Jens Wiklander
Hi Xen maintainers, In my patch series [XEN PATCH v4 0/5] FF-A notifications [1] I need to get a reference to a domain struct from a domain ID and keep it from being destroyed while using it in the interrupt handler notif_irq_handler() (introduced in the last patch "[XEN PATCH v4 5/5] xen/arm: ffa