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

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


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Mon, 1 May 2023 16:02:59 -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=6GirXXEDtjoXkR1fOhQzNZVltrkp/AltBpvuxHRBipc=; b=Vbh3HA4PQFKPVxWgMTHavXQecjpUWeTnKhCpDlZpsqnNdskA1ndcxQ/VCR0gB+SopsxT48iM/HUD+Jh/FXF7vWM118oMs6KSHPd5UoFZYAqJ42sI0qDEjCUiy5dCI2CrxhSjgS0ykjA30sSi6oH8/+lxWNCWIvCyZoQkY2EZe+WHRg21ysWM7stB81LTGf9W6VJ0d1UnIXLGX5DYfv6kKCxtTs4MYUgGpUWazGSWCDATE4Ve9YpCbDvz88G+ppAKo+1r5LlLIPajOaaPcR8vagW95WiLgB0DYAeGn7rXX10l9ERCIOy1er8PGyXmlWQpnHRCV4dUuexSs9OLJutmkQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QQOsvCMqYd8qQjX0QFmzLrSvL9+DDAv4jeMzHToQMYI8CGlCdFDaOahp3pi0Qs5wTYCw2NB4iic//VMqT7mipmTD3VHhGU+wmazb6G7efiTIKt5kgrbE6muiqwNA2Vj+ePz+S/5TTPuLrnU4VwugTBnejlOelCOIn1h5Qu5Ezt7RGse3C+6JI9X3H0Pt2w3Mx0zewYfuRaC36DWt9tlX9WtAS1/pb3O+xoNSr6kTOPOp5L+ctLabSUV8qSjLy0SO2IlyHVjii381WdXHI7s7CyE2QyG1mfECsdLmhfi4soRafxRMVGvbcSR27rb4diXKAtrlfpxGXJ7TynORa09qwg==
  • 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: Mon, 01 May 2023 20:03:35 +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. I have
cherry-picked them from various downstream branches, rebased, and made minor
changes since the cherry-pick. Details are in the individual patches. The
changes are designated with "downstream->v1" even though this is the first time
the patches appear on the list.

Oleksandr Andrushchenko (1):
  xen/arm: smmuv2: Add PCI devices support for SMMUv2

Oleksandr Tyshchenko (4):
  xen/arm: Move is_protected flag to struct device
  iommu/arm: Add iommu_dt_xlate()
  iommu/arm: Introduce iommu_add_dt_pci_device API
  pci/arm: Use iommu_add_dt_pci_device() instead of arch hook

Rahul Singh (1):
  xen/arm: smmuv3: Add PCI devices support for SMMUv3

 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    |  73 +++++++-
 xen/drivers/passthrough/arm/smmu.c       | 109 +++++++++---
 xen/drivers/passthrough/device_tree.c    | 202 ++++++++++++++++++++---
 xen/drivers/passthrough/pci.c            |  19 ++-
 xen/include/xen/device_tree.h            |  38 +++--
 xen/include/xen/iommu.h                  |   6 +-
 10 files changed, 395 insertions(+), 79 deletions(-)

-- 
2.40.1




 


Rackspace

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