Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Gleb Natapov
On Wed, Jul 15, 2009 at 06:42:05PM -0300, Marcelo Tosatti wrote: > On Wed, Jul 15, 2009 at 11:52:24PM +0300, Gleb Natapov wrote: > > On Wed, Jul 15, 2009 at 03:18:00PM -0300, Marcelo Tosatti wrote: > > > On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > > > > Use gsi indexed array ins

Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Marcelo Tosatti
On Wed, Jul 15, 2009 at 11:52:24PM +0300, Gleb Natapov wrote: > On Wed, Jul 15, 2009 at 03:18:00PM -0300, Marcelo Tosatti wrote: > > On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > > > Use gsi indexed array instead of scanning all entries on each interrupt > > > injection. Also main

Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Gleb Natapov
On Wed, Jul 15, 2009 at 03:18:00PM -0300, Marcelo Tosatti wrote: > On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > > Use gsi indexed array instead of scanning all entries on each interrupt > > injection. Also maintain back mapping from irqchip/pin to gsi to speedup > > interrupt ack

Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Gleb Natapov
On Wed, Jul 15, 2009 at 10:17:22PM +0300, Michael S. Tsirkin wrote: > On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > > @@ -147,14 +149,13 @@ int kvm_set_irq(struct kvm *kvm, int irq_source_id, > > int irq, int level) > > * writes to the unused one. > > */ > > rcu_rea

Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Michael S. Tsirkin
On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > @@ -147,14 +149,13 @@ int kvm_set_irq(struct kvm *kvm, int irq_source_id, int > irq, int level) >* writes to the unused one. >*/ > rcu_read_lock(); > - for (e = rcu_dereference(kvm->irq_routing); e && e->set;

Re: [PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-15 Thread Marcelo Tosatti
On Tue, Jul 14, 2009 at 05:30:45PM +0300, Gleb Natapov wrote: > Use gsi indexed array instead of scanning all entries on each interrupt > injection. Also maintain back mapping from irqchip/pin to gsi to speedup > interrupt acknowledgment notifications. > > Signed-off-by: Gleb Natapov > --- > inc

[PATCH 10/10] Change irq routing table to use gsi indexed array.

2009-07-14 Thread Gleb Natapov
Use gsi indexed array instead of scanning all entries on each interrupt injection. Also maintain back mapping from irqchip/pin to gsi to speedup interrupt acknowledgment notifications. Signed-off-by: Gleb Natapov --- include/linux/kvm_host.h | 11 ++- virt/kvm/irq_comm.c | 62 ++