[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v9 16/20] xen/riscv: implement IRQ routing for device passthrough





On 9/14/26 1:36 PM, Jan Beulich wrote:
On 14.09.2026 12:54, Oleksii Kurochko wrote:
On 9/10/26 2:53 PM, Jan Beulich wrote:
On 09.09.2026 17:07, Oleksii Kurochko wrote:
--- a/xen/arch/arm/irq.c
+++ b/xen/arch/arm/irq.c
@@ -205,7 +205,7 @@ void __init init_IRQ(void)
   static inline struct irq_guest *irq_get_guest_info(struct irq_desc *desc)
   {
       ASSERT(spin_is_locked(&desc->lock));
-    ASSERT(test_bit(_IRQ_GUEST, &desc->status));
+    ASSERT(desc->status & IRQ_GUEST);
       ASSERT(desc->action != NULL);
return desc->action->dev_id;

Why did an Arm change slip into a RISC-V patch?

Considering that this code is executed under the spinlock it is fine to
not use test_bit() so it is part of dropping of bitops functions.

Perhaps, but then in a separate patch and changing all places consistently
(I didn't go check, but I'm pretty sure there are more).
Oh, sorry, it is really Arm file. I overlooked that... It shouldn't be really touched in this patch.

~ Oleksii



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.