Re: [PATCH] xen/events: fix get_global_virq_handler() usage without hardware domain

2025-03-06 Thread Juergen Gross
On 06.03.25 17:00, Jan Beulich wrote: On 06.03.2025 16:54, Juergen Gross wrote: --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -1036,7 +1036,9 @@ int set_global_virq_handler(struct domain *d, uint32_t virq) { old = global_virq_handlers[virq]; hdl

Re: [PATCH] xen/events: fix get_global_virq_handler() usage without hardware domain

2025-03-06 Thread Jan Beulich
On 06.03.2025 16:54, Juergen Gross wrote: > --- a/xen/common/event_channel.c > +++ b/xen/common/event_channel.c > @@ -1036,7 +1036,9 @@ int set_global_virq_handler(struct domain *d, uint32_t > virq) > { > old = global_virq_handlers[virq]; > hdl = get_global_virq_handler(virq

[PATCH] xen/events: fix get_global_virq_handler() usage without hardware domain

2025-03-06 Thread Juergen Gross
Some use cases of get_global_virq_handler() didn't account for the case of running without hardware domain. Fix that by testing get_global_virq_handler() returning NULL where needed (e.g. when directly dereferencing the result). Fixes: 980822c5edd1 ("xen/events: allow setting of global virq handl