From: Alexander Graf <agraf@suse.de>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
ard.biesheuvel@linaro.org, rob.herring@linaro.org,
mst@redhat.com, claudio.fontana@huawei.com,
stuart.yoder@freescale.com, a.rigo@virtualopensystems.com
Subject: [Qemu-devel] [PATCH v2 0/4] ARM: Add support for a generic PCI Express host bridge
Date: Wed, 21 Jan 2015 17:18:47 +0100 [thread overview]
Message-ID: <1421857131-18539-1-git-send-email-agraf@suse.de> (raw)
Linux implements a nice binding to describe a "generic" PCI Express host bridge
using only device tree.
This patch set adds enough emulation logic to expose the parts that are
"generic" as a simple sysbus device and maps it into ARM's virt machine.
With this patch set, we can finally spawn PCI devices on ARM VMs. I was able
to have a fully DRM enabled virtual machine with VGA, e1000 and XHCI (for
keyboard and mouse) up and working.
It's only a small step for QEMU, but a big step for ARM VM's usability.
v1 -> v2:
- Add documentation links
- Remove mmio_window_size
- Add define for pci range types
- Use 4 PCI INTX IRQ lines
Alexander Graf (4):
pci: Split pcie_host_mmcfg_map()
pci: Add generic PCIe host bridge
arm: Add PCIe host bridge in virt machine
pci: Move PCI VGA to pci.mak
default-configs/alpha-softmmu.mak | 2 -
default-configs/arm-softmmu.mak | 2 +
default-configs/i386-softmmu.mak | 2 -
default-configs/mips-softmmu.mak | 2 -
default-configs/mips64-softmmu.mak | 2 -
default-configs/mips64el-softmmu.mak | 2 -
default-configs/mipsel-softmmu.mak | 2 -
default-configs/pci.mak | 2 +
default-configs/ppc-softmmu.mak | 2 -
default-configs/ppc64-softmmu.mak | 2 -
default-configs/ppcemb-softmmu.mak | 2 -
default-configs/sparc64-softmmu.mak | 2 -
default-configs/x86_64-softmmu.mak | 2 -
hw/arm/virt.c | 112 +++++++++++++++++++++++--
hw/pci-host/Makefile.objs | 1 +
hw/pci-host/gpex.c | 153 +++++++++++++++++++++++++++++++++++
hw/pci/pcie_host.c | 9 ++-
include/hw/pci-host/gpex.h | 54 +++++++++++++
include/hw/pci/pcie_host.h | 1 +
include/sysemu/device_tree.h | 9 +++
20 files changed, 336 insertions(+), 29 deletions(-)
create mode 100644 hw/pci-host/gpex.c
create mode 100644 include/hw/pci-host/gpex.h
--
1.7.12.4
next reply other threads:[~2015-01-21 16:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 16:18 Alexander Graf [this message]
2015-01-21 16:18 ` [Qemu-devel] [PATCH v2 1/4] pci: Split pcie_host_mmcfg_map() Alexander Graf
2015-01-27 13:55 ` Peter Maydell
2015-01-27 14:24 ` Michael S. Tsirkin
2015-01-27 14:40 ` Paolo Bonzini
2015-01-21 16:18 ` [Qemu-devel] [PATCH v2 2/4] pci: Add generic PCIe host bridge Alexander Graf
2015-01-22 16:32 ` B02008
2015-01-27 15:31 ` Peter Maydell
2015-01-29 13:59 ` Alexander Graf
2015-01-29 14:25 ` Peter Maydell
2015-01-30 10:25 ` Paolo Bonzini
2015-01-21 16:18 ` [Qemu-devel] [PATCH v2 3/4] arm: Add PCIe host bridge in virt machine Alexander Graf
2015-01-22 15:28 ` Claudio Fontana
2015-01-22 15:52 ` Alexander Graf
2015-01-27 9:24 ` Claudio Fontana
2015-01-27 10:09 ` Peter Maydell
2015-01-27 14:37 ` Claudio Fontana
2015-01-27 16:52 ` Peter Maydell
2015-01-29 14:31 ` Alexander Graf
2015-01-29 14:34 ` Peter Maydell
2015-01-29 14:37 ` Alexander Graf
2015-01-29 14:45 ` Peter Maydell
2015-01-29 14:49 ` Alexander Graf
2015-01-21 16:18 ` [Qemu-devel] [PATCH v2 4/4] pci: Move PCI VGA to pci.mak Alexander Graf
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=1421857131-18539-1-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--cc=a.rigo@virtualopensystems.com \
--cc=ard.biesheuvel@linaro.org \
--cc=claudio.fontana@huawei.com \
--cc=mst@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rob.herring@linaro.org \
--cc=stuart.yoder@freescale.com \
/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).