Re: [PATCH 1/5] xen: events: use irq_alloc_desc(_at) instead of open-coding an IRQ allocator.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ian Campbell
Date: Monday, October 25, 2010 - 11:02 am

On Mon, 2010-10-25 at 18:35 +0100, Konrad Rzeszutek Wilk wrote:

I suspect what we should really be doing is to segregate the different
classes of event channel in IRQ space. I _think_ this new stuff is happy
with a discontinuous (but presumably clustered) IRQ space, I should
probably check.

e.g. regular interdomain event channels, VIRQs and the like should
probably request allocations from some range higher than nr_hw_irqs,
thus avoiding conflicts with hardware PIRQ event channels which would
ask for a 1-1 mapping with the GSI (i.e. same interrupt numbers as the
device would get under native, AIUI).

We might even decide to start the interdomain event channel range even
higher than nr_hw_irqs in order to leave room for the more dynamic h/w
PIRQs (e.g. MSIs) just after nr_hw_irqs. Assuming this is consistent
with what would happen on native then it is probably worthwhile.


I doubt the sparse irq rework had any impact on this aspect, but it does
help us more easily arrange for them not to be shared in that way in the
first place.


I can try tomorrow and see, based on what you say above without
implementing what I described I suspect the answer will be "carnage". 

Ian.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [tip:irq/core] x86: xen: Sanitise sparse_irq handling, Jeremy Fitzhardinge, (Fri Oct 15, 5:15 pm)
Re: [Xen-devel] Re: [tip:irq/core] x86: xen: Sanitise spar ..., Jeremy Fitzhardinge, (Fri Oct 15, 5:17 pm)
Re: [PATCH 1/5] xen: events: use irq_alloc_desc(_at) inste ..., Konrad Rzeszutek Wilk, (Mon Oct 25, 10:35 am)
Re: [PATCH 1/5] xen: events: use irq_alloc_desc(_at) inste ..., Ian Campbell, (Mon Oct 25, 11:02 am)
Re: [PATCH 1/5] xen: events: use irq_alloc_desc(_at) inste ..., Jeremy Fitzhardinge, (Mon Oct 25, 4:03 pm)
Re: [PATCH 00/05] xen: events: cleanups after irq core imp ..., Jeremy Fitzhardinge, (Mon Oct 25, 4:03 pm)
Re: [PATCH 1/5] xen: events: use irq_alloc_desc(_at) inste ..., Jeremy Fitzhardinge, (Mon Oct 25, 4:21 pm)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Konrad Rzeszutek Wilk, (Tue Oct 26, 7:17 am)
Re: [PATCH 4/5] xen: events: dynamically allocate irq info ..., Konrad Rzeszutek Wilk, (Tue Oct 26, 7:30 am)
Re: [PATCH 3/5] xen: events: push setup of irq<->{evtchn,p ..., Konrad Rzeszutek Wilk, (Tue Oct 26, 7:31 am)
Re: [PATCH 5/5] xen: events: use per-cpu variable for cpu_ ..., Konrad Rzeszutek Wilk, (Tue Oct 26, 7:36 am)
Re: [PATCH 4/5] xen: events: dynamically allocate irq info ..., Jeremy Fitzhardinge, (Tue Oct 26, 9:37 am)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Jeremy Fitzhardinge, (Tue Oct 26, 9:44 am)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Konrad Rzeszutek Wilk, (Tue Oct 26, 10:08 am)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Stefano Stabellini, (Tue Oct 26, 12:49 pm)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Jeremy Fitzhardinge, (Tue Oct 26, 1:20 pm)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Stefano Stabellini, (Thu Oct 28, 5:43 am)
Re: [Xen-devel] Re: [PATCH 1/5] xen: events: use irq_alloc ..., Jeremy Fitzhardinge, (Thu Oct 28, 9:22 am)