From: David Hildenbrand <david@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Michael S . Tsirkin" <mst@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
Alexander Graf <agraf@suse.de>,
David Gibson <david@gibson.dropbear.id.au>,
Eduardo Habkost <ehabkost@redhat.com>,
"Dr . David Alan Gilbert" <dgilbert@redhat.com>,
qemu-ppc@nongnu.org, David Hildenbrand <david@redhat.com>
Subject: [Qemu-devel] [PATCH v1 0/7] pci: hotplug handler reworks
Date: Wed, 24 Oct 2018 12:19:23 +0200 [thread overview]
Message-ID: <20181024101930.20674-1-david@redhat.com> (raw)
This series reworks some pci hotplug handlers (except for s390, that will
require more work but is not required for now).
1. Route all unplug calls via the hotplug handler when called from the
unplug_request handler. This will be required to get multi-stage
hotplug handlers running, but also makes sense on its own (just like we
already did for some CPU/memory hotplug handlers).
2. Introduce some pre_plug handlers where it makes sense already.
3. Call the plug/pre_plug handler also for coldplugged devices. Especially
pcihp is special as it overwrites hotplug handlers.
This series will not yet factor out pre_plug/plug/unplug from pci device
realize/unrealize functions, this will require more work but this
series is also required first to get it running.
David Hildenbrand (7):
pcihp: perform check for bus capability in pre_plug handler
pcihp: overwrite hotplug handler recursively from the start
pcihp: route unplug via the hotplug handler
pci/pcie: route unplug via the hotplug handler
pci/shpc: move hotplug checks to preplug handler
pci/shpc: route unplug via the hotplug handler
spapr_pci: route unplug via the hotplug handler
hw/acpi/pcihp.c | 40 +++++++++++++++++++++++-----
hw/acpi/piix4.c | 39 ++++++++++++++-------------
hw/pci-bridge/pci_bridge_dev.c | 23 +++++++++++++++-
hw/pci-bridge/pcie_pci_bridge.c | 23 +++++++++++++++-
hw/pci/pcie.c | 10 ++++++-
hw/pci/pcie_port.c | 1 +
hw/pci/shpc.c | 47 ++++++++++++++++++---------------
hw/ppc/spapr_pci.c | 33 ++++++++++++++---------
include/hw/acpi/pcihp.h | 5 ++++
include/hw/pci/pcie.h | 2 ++
include/hw/pci/shpc.h | 4 +++
11 files changed, 165 insertions(+), 62 deletions(-)
--
2.17.2
next reply other threads:[~2018-10-24 10:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 10:19 David Hildenbrand [this message]
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 1/7] pcihp: perform check for bus capability in pre_plug handler David Hildenbrand
2018-11-01 14:11 ` Igor Mammedov
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 2/7] pcihp: overwrite hotplug handler recursively from the start David Hildenbrand
2018-11-01 14:10 ` Igor Mammedov
2018-11-02 11:43 ` David Hildenbrand
2018-11-02 13:00 ` Igor Mammedov
2018-11-02 13:34 ` David Hildenbrand
2018-11-02 16:28 ` Michael S. Tsirkin
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 3/7] pcihp: route unplug via the hotplug handler David Hildenbrand
2018-11-01 14:21 ` Igor Mammedov
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 4/7] pci/pcie: " David Hildenbrand
2018-11-01 14:38 ` Igor Mammedov
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 5/7] pci/shpc: move hotplug checks to preplug handler David Hildenbrand
2018-11-05 9:11 ` David Hildenbrand
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 6/7] pci/shpc: route unplug via the hotplug handler David Hildenbrand
2018-10-24 10:19 ` [Qemu-devel] [PATCH v1 7/7] spapr_pci: " David Hildenbrand
2018-10-24 12:50 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2018-10-31 17:31 ` [Qemu-devel] [PATCH v1 0/7] pci: hotplug handler reworks David Hildenbrand
2018-11-01 14:55 ` Igor Mammedov
2018-11-01 16:42 ` David Hildenbrand
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=20181024101930.20674-1-david@redhat.com \
--to=david@redhat.com \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=dgilbert@redhat.com \
--cc=ehabkost@redhat.com \
--cc=imammedo@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.