A suggestion about processing irq
Quoted 11 lines
From: [email protected] [mailto:xen-devel- [email protected]] On Behalf Of Julien Grall
Sent: Tuesday, August 20, 2013 10:16 PM
To: [email protected]
Cc: Stefano Stabellini; Ian Campbell; [email protected]
Subject: Re: [Xen-devel] A suggestion about processing irqQuoted 1 line · 김재민
Hello,
Hi
Hi,
Quoted 4 lines
Quoted 3 lines
While I was reading gic handling part of xen arm, I noticed that, in
gic_set_guest_irqfunction, iflr_pendingis not empty, the arrival irqis also stored into pending list.
Quoted 8 lines
Quoted 3 lines
I think although
lr_pendingis not empty, there maybe empty slots in lr, and if so, we can insert IRQ immediately. Since I'd like to keep the IRQ in priority order, how about checking the highest priority in
lr_pendinglist rather than emptiness?Thanks for this patch. Do you plan to have a full support for priority?
Cheers,
Does it fix the emulated GICD part for "guest domain" or GICD part for xen ?
As I know, the part of involved in handling irq priority is implemented already in xen code.
The meaning of "full support" is ambiguous to me.
Could you tell me the scope of that ?
Quoted 29 lines
Quoted 15 lines
Here goes the simple patch:
Signed-off-by Jaemin Kim---
diff -urNxen/arch/arm/gic.cxen2/arch/arm/gic.carch/arm/gic.c 2013-07-31 11:19:28.094799335 +0900 renamed from arch/arm/gic.c 2013-07-30 10:16:45.076382483 +0900 +1
-1@@ -587,12 +587,17 @@ unsigned int state, unsigned int priority) { int i; - struct pending_irq *iter, *n; + struct pending_irq *iter, *n, *first_item; unsigned long flags; spin_lock_irqsave(&gic.lock, flags);arch/arm/gic.c 2013-07-31 11:19:28.094799335 +0900 line 600
Quoted 10 lines
arch/arm/gic.c 2013-07-31 11:19:28.094799335 +0900 renamed from arch/arm/gic.c 2013-07-30 10:16:45.076382483 +0900 +6
-1+ + first_item = list_entry( (&v->arch.vgic.lr_pending)->next, + typeof(*iter), lr_queue ); - if (( v == current ) && (list_empty(&v->arch.vgic.lr_pending) )) + if ( ( v == current ) && + ( list_empty(&v->arch.vgic.lr_pending) || + ( priority > first_item->priority ) ) ) { i = find_first_zero_bit(&this_cpu(lr_mask), nr_lrs); if (i < nr_lrs) {--
Julien Grall
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel