From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgLYW-0000oS-Eb for qemu-devel@nongnu.org; Mon, 20 Oct 2014 18:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgLYN-0000Hv-Le for qemu-devel@nongnu.org; Mon, 20 Oct 2014 18:36:00 -0400 From: Knut Omang Date: Tue, 21 Oct 2014 00:34:01 +0200 Message-Id: <1413844443-28894-1-git-send-email-knut.omang@oracle.com> Subject: [Qemu-devel] [PATCH 0/2] intel_iommu: Add support for translation for devices behind bridges List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Knut Omang , "Michael S. Tsirkin" , Michael Tokarev , Marcel Apfelbaum , Mark Cave-Ayland , Alexander Graf , Markus Armbruster , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Anthony Liguori , Stefan Weil , qemu-ppc@nongnu.org, 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