Re: [PATCH v2 14/16] xen/riscv: add external interrupt handling for hypervisor mode

2025-05-20 Thread Oleksii Kurochko
On 5/15/25 11:54 AM, Jan Beulich wrote: On 06.05.2025 18:51, Oleksii Kurochko wrote: +static void cf_check aplic_set_irq_type(struct irq_desc *desc, unsigned int type) +{ +/* +* Interrupt 0 isn't possible based on the spec: +* Each of an APLIC’s interrupt sources has a fixed uniq

Re: [PATCH v2 14/16] xen/riscv: add external interrupt handling for hypervisor mode

2025-05-15 Thread Jan Beulich
On 06.05.2025 18:51, Oleksii Kurochko wrote: > +static void cf_check aplic_set_irq_type(struct irq_desc *desc, unsigned int > type) > +{ > +/* > +* Interrupt 0 isn't possible based on the spec: > +* Each of an APLIC’s interrupt sources has a fixed unique identity > number in the ran

[PATCH v2 14/16] xen/riscv: add external interrupt handling for hypervisor mode

2025-05-06 Thread Oleksii Kurochko
Implement functions necessarry to have working external interrupts in hypervisor mode. The following changes are done: - Add a common function intc_handle_external_irq() to call APLIC specific function to handle an interrupt. - Update do_trap() function to handle IRQ_S_EXT case; add the che