qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Auger <eric.auger@linaro.org>
To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org,
	peter.maydell@linaro.org, agraf@suse.de, pbonzini@redhat.com
Cc: alex.williamson@redhat.com, kvmarm@lists.cs.columbia.edu,
	christoffer.dall@linaro.org, patches@linaro.org
Subject: [Qemu-devel] [PATCH v2 0/2] add qemu_irq/gsi hashtable
Date: Thu, 23 Apr 2015 16:08:34 +0100	[thread overview]
Message-ID: <1429801716-8027-1-git-send-email-eric.auger@linaro.org> (raw)

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

             reply	other threads:[~2015-04-23 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23 15:08 Eric Auger [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429801716-8027-1-git-send-email-eric.auger@linaro.org \
    --to=eric.auger@linaro.org \
    --cc=agraf@suse.de \
    --cc=alex.williamson@redhat.com \
    --cc=christoffer.dall@linaro.org \
    --cc=eric.auger@st.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=patches@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).