[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 0/7] SMMU handling for PCIe Passthrough on ARM
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Date: Tue, 6 Jun 2023 23:02:13 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e3XCxlbEKAvvYqyg8avJlBxcbRn0rYcgZKbcRhcCpFY=; b=VPUnelGF+WskcrH2q0gsU34o1nHD3Np7OfsUPWl4K0Zmvx3ca1i5Yh8fXYR0QQuvobqd3+HPAMsfHSc4TwBPUCRL/o9OElfUzNdZ04fC4HnULRJMPGWO1BRst6yUGLb5+eK04hU8Gr3gUokhyVR6sV7IKt6BVTqQydP5dfUlY/JPS1fcgY+v1pXHJgaJRzpN/HSiSRV/yrFH7DFKmyotOoA6ZZRGxmE9LGlutN8B9U4JzRnT/BMzO2Fd+Nm8f8zSDDUZqOEZSUIl4gvz0nEUzQvuWETRTtzbjSCKbmc/6pKaiUFFK6VFFV3v0pCX3py/5M+CQL5AYikEXbAlLGLBdw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C159BidfSM95iW8YhYTuuM9ZG+FP0owcja2LEzuBdULc24YBIQQLwvkKaS/bmKERvtf8RBm1ThE/VykQzRfoOXcExmO0IZmJ14LpYxRRDTa0VvA4/eT62Xg3WHphBziPXpOOrzvDZ6mGgrgQb06/TS6GSyFqBY7inILjSfokzO33RFua54ayHhuF/3wNsBBg4luP8+c9x7brNgPgHWxUiVhqphnTfP/83SKiUILjkkbyj8ByO3MyJsFDDdRTws7HKm1266FoztezxcPu37Qng7WqhWTIrD9YyZSdujNNZ7QgpnsmfJ7XtZvlK4hJMtMU3B+6N4InbqRvx3NVu1z5Xw==
- Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Paul Durrant" <paul@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 07 Jun 2023 03:05:41 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
This series introduces SMMU handling for PCIe passthrough on ARM. These patches
are independent from (and don't depend on) the vPCI reference counting/locking
work in progress, and should be able to be upstreamed independently.
v3->v4:
* split a change from ("xen/arm: Move is_protected flag to struct device") into
a new separate patch
* see individual patches for further details
v2->v3:
* drop "pci/arm: Use iommu_add_dt_pci_device()"
* drop "RFC: pci/arm: don't do iommu call for phantom functions"
* move invocation of sideband ID mapping function to add_device()
platform_ops/iommu_ops hook
v1->v2:
* phantom device handling
* shuffle around iommu_add_dt_pci_device()
Oleksandr Andrushchenko (1):
xen/arm: smmuv2: Add PCI devices support for SMMUv2
Oleksandr Tyshchenko (4):
xen/arm: Improve readability of check for registered devices
xen/arm: Move is_protected flag to struct device
iommu/arm: Add iommu_dt_xlate()
iommu/arm: Introduce iommu_add_dt_pci_sideband_ids API
Rahul Singh (1):
xen/arm: smmuv3: Add PCI devices support for SMMUv3
Stewart Hildebrand (1):
iommu/arm: iommu_add_dt_pci_sideband_ids phantom handling
xen/arch/arm/domain_build.c | 4 +-
xen/arch/arm/include/asm/device.h | 14 ++
xen/common/device_tree.c | 2 +-
xen/drivers/passthrough/arm/ipmmu-vmsa.c | 4 +-
xen/drivers/passthrough/arm/smmu-v3.c | 81 ++++++++-
xen/drivers/passthrough/arm/smmu.c | 122 +++++++++++---
xen/drivers/passthrough/device_tree.c | 205 ++++++++++++++++++++---
xen/include/xen/device_tree.h | 38 +++--
xen/include/xen/iommu.h | 22 ++-
9 files changed, 423 insertions(+), 69 deletions(-)
--
2.40.1
|