All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] intel_iommu: Add support for translation for devices behind bridges
@ 2014-10-20 22:34 Knut Omang
  2014-10-20 22:34 ` [Qemu-devel] [PATCH 1/2] iommu: Replace bus+devfn arguments with PCIDevice* in PCIIOMMUFunc Knut Omang
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Knut Omang @ 2014-10-20 22:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Knut Omang, Michael S. Tsirkin, Michael Tokarev,
	Marcel Apfelbaum, Mark Cave-Ayland, Alexander Graf,
	Markus Armbruster, Andreas Färber, Hervé Poussineau,
	Anthony Liguori, Stefan Weil, qemu-ppc, Richard Henderson

This patch set changes the data structure used to handle address spaces within
the emulated Intel iommu to support traversal also if bus numbers are dynamically
allocated, as is the case for devices that sit behind root ports or downstream switches.
This means that we cannot use bus number as index, instead a QLIST is used.

This requires a change in the API for setup of IOMMUs which is taken care of by 
the first patch. The second patch implements the fix.

Knut Omang (2):
  iommu: Replace bus+devfn arguments with PCIDevice* in PCIIOMMUFunc
  intel_iommu: Add support for translation for devices behind bridges.

 hw/alpha/typhoon.c            |  2 +-
 hw/i386/intel_iommu.c         | 58 ++++++++++++++++++-------------------------
 hw/pci-host/apb.c             |  2 +-
 hw/pci-host/prep.c            |  3 +--
 hw/pci-host/q35.c             | 41 +++++++++++++-----------------
 hw/pci/pci.c                  |  7 +++---
 hw/pci/pci_bridge.c           |  6 +++++
 hw/ppc/spapr_pci.c            |  2 +-
 include/hw/i386/intel_iommu.h |  6 +++--
 include/hw/pci/pci.h          |  4 ++-
 10 files changed, 61 insertions(+), 70 deletions(-)

-- 
1.9.0

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-10-26 15:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 22:34 [Qemu-devel] [PATCH 0/2] intel_iommu: Add support for translation for devices behind bridges Knut Omang
2014-10-20 22:34 ` [Qemu-devel] [PATCH 1/2] iommu: Replace bus+devfn arguments with PCIDevice* in PCIIOMMUFunc Knut Omang
2014-10-20 22:34 ` [Qemu-devel] [PATCH 2/2] intel_iommu: Add support for translation for devices behind bridges Knut Omang
2014-10-25 11:36   ` Jan Kiszka
2014-10-25 12:24     ` Jan Kiszka
2014-10-26  4:46       ` Knut Omang
2014-10-25 12:28   ` Jan Kiszka
2014-10-26 12:06   ` Jan Kiszka
2014-10-26 13:15     ` Knut Omang
2014-10-26 15:20       ` Michael S. Tsirkin
2014-10-20 23:29 ` [Qemu-devel] [PATCH 0/2] " Alexander Graf
2014-10-21  5:26   ` Knut Omang
2014-10-21  9:07     ` Alexander Graf
2014-10-21  9:35       ` Knut Omang
2014-10-21 11:15         ` Alexander Graf
2014-10-21 11:26           ` Michael S. Tsirkin
2014-10-21 11:37             ` Knut Omang
2014-10-21 12:20               ` Michael S. Tsirkin
2014-10-21 15:07           ` Alex Williamson
2014-10-21 22:26             ` Michael S. Tsirkin

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.