[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/6] SMMU handling for PCIe Passthrough on ARM


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Thu, 18 May 2023 17:06:52 -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=Xi4VMXaQkQek2qLIH1FDhP/UsKtsSqzDAK67s9incms=; b=LJN/fgcLz32HGsYyuAca3H8zQsLJfxyi0UXdvyocejpxj+1F5seaZSvj9lP8fKsxYVFhrCUp22hV4Ah8OoczFRj/Dziz5tNc9OhaAYAyzYvyzBT67+v2HUqQd55FxeyOY1h0vditxPUTnjLL0xVY/IKJ2gTSpM+51m2t3PLqRMiAbCQQ7yrKoLFBordCSoo5gaz5p82soTCJHDfjSpHgMl+76flxERncB9/qDAB78+WMCLbmTs8FC0Cvf24/4vHOUOzwh57u8Gd5lj6WMIJd6DUU1TqiGwP54hR2lXLC8qtkLogjJCvlsDnnHCq+wyHacxN+4BPximxLrNLZjKrqeQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AygZTvivD4kBDMqXwhwowCOuc+DuiFrWhElD6Zd1rQflCjDcaaqWNICL+6u65GpYM/Fes5ZebPTInJpsQvMT6ymQ5Zek397yHDyAV99JsjqO5R0Z4wNO+B5Q1gp9gX6uvdgFUvc9dAvjeKA/kf2jmcfb3gLFXxHwGrG9Zd8VdjW5VVQc+d4xdKoMkEDOy62F9cW0XHAeYwHcfZdCdTAc9T8Tm4TApvHrXOQEH+5PIphGpiR3W0tsud8Uuur+40a9LQSoN9zo//HePN7O4wIOikoMyFKbQ1CiR+jgmbazDTYVfKk9beHBzjO2uPhDJyxy9G9EVxb6v17ZLcvr9TsYfw==
  • 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: Thu, 18 May 2023 21:07:43 +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.

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 (3):
  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        |  13 ++
 xen/common/device_tree.c                 |   2 +-
 xen/drivers/passthrough/arm/ipmmu-vmsa.c |   8 +-
 xen/drivers/passthrough/arm/smmu-v3.c    |  83 +++++++--
 xen/drivers/passthrough/arm/smmu.c       | 116 ++++++++++---
 xen/drivers/passthrough/device_tree.c    | 204 ++++++++++++++++++++---
 xen/include/xen/device_tree.h            |  38 +++--
 xen/include/xen/iommu.h                  |  17 +-
 9 files changed, 408 insertions(+), 77 deletions(-)

-- 
2.40.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.