From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: qemu-devel@nongnu.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
qemu-ppc@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: [Qemu-devel] [PATCH 0/6] move interrupts from spapr to xics
Date: Wed, 7 May 2014 16:01:52 +1000 [thread overview]
Message-ID: <1399442518-26303-1-git-send-email-aik@ozlabs.ru> (raw)
The existing interrupt allocation scheme in SPAPR assumes that
interrupts are allocated at the start time, continously and the config
will not change. However, there are cases when this is not going to work
such as:
1. migration - we will have to have an ability to choose interrupt
numbers for devices in the command line and this will create gaps in
interrupt space.
2. PCI hotplug - interrupts from unplugged device need to be returned
back to interrupt pool, otherwise we will quickly run out of interrupts if
we do PCI hotplug often.
First this was posted as "[PATCH 0/8] spapr: fix IOMMU and XICS/IRQs migration"
but since then we decided to migrate IOMMU in a different way and now it just
about interrupts.
This is also going to be used in spapr_pci's ibm,change-msi callback
to release interrupts and reallocate them again. At the moment spapr_pci
keeps a map of what it allocated for what device and it would be nice
to get rid of that mapping too and use this patchset instead.
Please comment. Thanks!
Alexey Kardashevskiy (6):
xics: add flags for interrupts
xics: add find_server
xics: disable flags reset on xics reset
spapr: move interrupt allocator to xics
spapr: remove @next_irq
xics: implement xics_ics_free()
hw/intc/xics.c | 150 +++++++++++++++++++++++++++++++++++++++++++++----
hw/intc/xics_kvm.c | 9 +--
hw/ppc/spapr.c | 70 +----------------------
hw/ppc/spapr_events.c | 2 +-
hw/ppc/spapr_pci.c | 6 +-
hw/ppc/spapr_vio.c | 2 +-
include/hw/ppc/spapr.h | 11 ----
include/hw/ppc/xics.h | 9 ++-
trace-events | 6 ++
9 files changed, 162 insertions(+), 103 deletions(-)
--
1.8.4.rc4
next reply other threads:[~2014-05-07 6:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 6:01 Alexey Kardashevskiy [this message]
2014-05-07 6:01 ` [Qemu-devel] [PATCH 1/6] xics: add flags for interrupts Alexey Kardashevskiy
2014-05-07 13:09 ` Mike Day
2014-05-09 3:12 ` Alexey Kardashevskiy
2014-05-09 12:20 ` Mike Day
2014-05-08 11:52 ` Alexander Graf
2014-05-08 12:08 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2014-05-07 6:01 ` [Qemu-devel] [PATCH 2/6] xics: add find_server Alexey Kardashevskiy
2014-05-07 13:14 ` Mike Day
2014-05-07 6:01 ` [Qemu-devel] [PATCH 3/6] xics: disable flags reset on xics reset Alexey Kardashevskiy
2014-05-08 11:57 ` Alexander Graf
2014-05-07 6:01 ` [Qemu-devel] [PATCH 4/6] spapr: move interrupt allocator to xics Alexey Kardashevskiy
2014-05-07 6:01 ` [Qemu-devel] [PATCH 5/6] spapr: remove @next_irq Alexey Kardashevskiy
2014-05-07 6:01 ` [Qemu-devel] [PATCH 6/6] xics: implement xics_ics_free() Alexey Kardashevskiy
2014-05-08 12:07 ` Alexander Graf
2014-05-09 2:13 ` Alexey Kardashevskiy
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=1399442518-26303-1-git-send-email-aik@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).