qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] add qemu_irq/gsi hashtable
@ 2015-04-23 15:08 Eric Auger
  2015-04-23 15:08 ` [Qemu-devel] [PATCH v2 1/2] kvm-all.c: add qemu_irq/gsi hash table and utility routines Eric Auger
  2015-04-23 15:08 ` [Qemu-devel] [PATCH v2 2/2] intc: arm_gic_kvm: set the qemu_irq/gsi mapping Eric Auger
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Auger @ 2015-04-23 15:08 UTC (permalink / raw)
  To: eric.auger, eric.auger, qemu-devel, peter.maydell, agraf,
	pbonzini
  Cc: alex.williamson, kvmarm, christoffer.dall, patches

The VFIO platform needs to setup irqfd but it does not know the gsi associated
to the sysbus device qemu_irq.

With PCI there is a PCIINTxRoute bus lookup mechanism that enables to
retrieve the gsi from the PCI host controller/bridge pin. The conversion
is implemented by the PCI host controller. With platform devices, this
conversion function is implemented by the interrupt controller.

This series implements a hash table in kvm-all that stores the mapping
between qemu_irq and gsi. A setter is introduced for the interrupt controller
to insert mappings. Also functions are added to setup/tear down irqfd directly
from a qemu_irq. Those functions now can be used by the VFIO platform device
to setup VFIO signaling.

v1 -> v2:
- series renamed from "irq: add get_gsi callback"
- follow implementation suggested by Paolo (hope I fully understood it)

Eric Auger (2):
  kvm-all.c: add qemu_irq/gsi hash table and utility routines
  intc: arm_gic_kvm: set the qemu_irq/gsi mapping

 hw/intc/arm_gic_kvm.c |  5 +++++
 include/sysemu/kvm.h  |  6 ++++++
 kvm-all.c             | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-23 15:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 15:08 [Qemu-devel] [PATCH v2 0/2] add qemu_irq/gsi hashtable Eric Auger
2015-04-23 15:08 ` [Qemu-devel] [PATCH v2 1/2] kvm-all.c: add qemu_irq/gsi hash table and utility routines Eric Auger
2015-04-23 15:22   ` Paolo Bonzini
2015-04-23 15:21     ` Eric Auger
2015-04-23 15:08 ` [Qemu-devel] [PATCH v2 2/2] intc: arm_gic_kvm: set the qemu_irq/gsi mapping Eric Auger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).