qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] irq: add get_gsi callback
@ 2015-04-23  8:49 Eric Auger
  2015-04-23  8:49 ` [Qemu-devel] [PATCH 1/2] " Eric Auger
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Eric Auger @ 2015-04-23  8:49 UTC (permalink / raw)
  To: eric.auger, eric.auger, qemu-devel, alex.williamson,
	peter.maydell, agraf, pbonzini
  Cc: kvmarm, christoffer.dall, patches

This series introduces a new callback function in IRQState, named
get_gsi_cb. It is supposed to be populated by the interrupt controller
and its role is to convert the interrupt controller pin number into
the global system interrupt (gsi) number. The gsi is used when setting
irqfd up.

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.

Besides the callback member, a setter is introduced. First user is
arm_gic_kvm. A public function wraps the callback, qemu_irq_get_gsi.

The first user of qemu_irq_get_gsi might be the VFIO platform device.
This will come in the "KVM platform device passthrough" series.

Eric Auger (2):
  irq: add get_gsi callback
  intc: arm_gic_kvm: set the get_gsi callback

 hw/core/irq.c         | 20 ++++++++++++++++++++
 hw/intc/arm_gic_kvm.c | 10 ++++++++++
 include/hw/irq.h      |  8 ++++++++
 3 files changed, 38 insertions(+)

-- 
1.8.3.2

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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23  8:49 [Qemu-devel] [PATCH 0/2] irq: add get_gsi callback Eric Auger
2015-04-23  8:49 ` [Qemu-devel] [PATCH 1/2] " Eric Auger
2015-04-23  8:49 ` [Qemu-devel] [PATCH 2/2] intc: arm_gic_kvm: set the " Eric Auger
2015-04-23  9:30 ` [Qemu-devel] [PATCH 0/2] irq: add " Paolo Bonzini
2015-04-23  9:40   ` Eric Auger
2015-04-23  9:58     ` Paolo Bonzini
2015-04-23 11:25       ` Eric Auger
2015-04-24  9:01       ` Eric Auger
2015-04-24  9:11         ` Paolo Bonzini
2015-04-24  9:18           ` Eric Auger
2015-04-24  9:29             ` Paolo Bonzini
2015-04-24  9:48               ` Eric Auger
2015-04-24 10:02                 ` Paolo Bonzini
2015-04-24 11:59                   ` Eric Auger
2015-04-24 12:04                     ` Paolo Bonzini

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).