From: David Kiarie <davidkiarie4@gmail.com>
To: qemu-devel@nongnu.org
Cc: jan.kiszka@web.de, mst@redhat.com, rkrcmar@redhat.com,
peterx@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com,
alex.williamson@redhat.com, David Kiarie <davidkiarie4@gmail.com>
Subject: [Qemu-devel] [v4 0/6] AMD IOMMU Interrupt remapping
Date: Mon, 12 Sep 2016 13:08:03 +0300 [thread overview]
Message-ID: <1473674889-2727-1-git-send-email-davidkiarie4@gmail.com> (raw)
Hello,
This patchset adds AMD IOMMU interrupt remapping logic to Qemu.
I have made some changes to the way X86 Qemu manages MSI routes. The
current code assumes that MSI routes are affiliated to a PCI device which
will not always be the case with split irqchip. With split irqchip platform
devices, in our case IOAPIC should be able to make interrupt requests via KVM.
That being said, we not have IOMMU interrupt remapping and these platform devices
will be expected to make interrupt requests using an explicit SID. I have therefore
made some changes so that MSI routes are affiliated to a Requester ID and a PCI device
if one is present.
This patchset builds ontop of the AMD IOMMU patchset but is available here[1] for quick
testing.
https://github.com/aslaq/qemu IR
David Kiarie (6):
hw/msi: Allow platform devices to use explicit SID
hw/i386: enforce SID verification
hw/iommu: Prepare for AMD IOMMU interrupt remapping
hw/iommu: AMD IOMMU interrupt remapping
hw/acpi: report IOAPIC on IVRS
hw/iommu: share common code between IOMMUs
hw/i386/acpi-build.c | 2 +
hw/i386/amd_iommu.c | 240 +++++++++++++++++++++++++++++++++++++-
hw/i386/amd_iommu.h | 82 +++++++++++++
hw/i386/intel_iommu.c | 89 +++++++-------
hw/i386/kvm/pci-assign.c | 12 +-
hw/i386/trace-events | 7 ++
hw/i386/x86-iommu.c | 8 ++
hw/intc/ioapic.c | 30 ++++-
hw/misc/ivshmem.c | 6 +-
hw/vfio/pci.c | 6 +-
hw/virtio/virtio-pci.c | 7 +-
include/hw/i386/ioapic_internal.h | 1 +
include/hw/i386/x86-iommu.h | 1 +
include/sysemu/kvm.h | 25 ++--
kvm-all.c | 10 +-
kvm-stub.c | 5 +-
qemu-version.h | 1 +
target-i386/kvm.c | 15 ++-
18 files changed, 461 insertions(+), 86 deletions(-)
create mode 100644 qemu-version.h
--
2.1.4
next reply other threads:[~2016-09-12 10:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 10:08 David Kiarie [this message]
2016-09-12 10:08 ` [Qemu-devel] [v4 1/6] hw/msi: Allow platform devices to use explicit SID David Kiarie
2016-09-12 11:02 ` Peter Xu
2016-09-12 11:26 ` David Kiarie
2016-09-12 11:54 ` Peter Xu
2016-09-12 10:08 ` [Qemu-devel] [v4 2/6] hw/i386: enforce SID verification David Kiarie
2016-09-12 11:09 ` Peter Xu
2016-09-12 11:12 ` David Kiarie
2016-09-12 11:13 ` Peter Xu
2016-09-12 10:08 ` [Qemu-devel] [v4 3/6] hw/iommu: Prepare for AMD IOMMU interrupt remapping David Kiarie
2016-09-12 10:08 ` [Qemu-devel] [v4 4/6] hw/iommu: " David Kiarie
2016-09-12 11:34 ` Peter Xu
2016-09-12 11:51 ` David Kiarie
2016-09-12 12:11 ` Peter Xu
2016-09-12 12:45 ` David Kiarie
2016-09-13 7:38 ` Peter Xu
2016-09-13 14:11 ` Michael S. Tsirkin
2016-09-13 14:13 ` Michael S. Tsirkin
2016-09-14 10:12 ` David Kiarie
2016-09-12 10:08 ` [Qemu-devel] [v4 5/6] hw/acpi: report IOAPIC on IVRS David Kiarie
2016-09-12 10:08 ` [Qemu-devel] [v4 6/6] hw/iommu: share common code between IOMMUs David Kiarie
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=1473674889-2727-1-git-send-email-davidkiarie4@gmail.com \
--to=davidkiarie4@gmail.com \
--cc=alex.williamson@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jan.kiszka@web.de \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkrcmar@redhat.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 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.