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

[Xen-devel] [PATCH v1 00/10] "Non-shared" IOMMU support on ARM



Hi, all.

The purpose of this patch series is to create a base for porting
any "Non-shared" IOMMUs to Xen on ARM. Saying "Non-shared" IOMMU I mean
the IOMMU that can't share the page table with the CPU.
Primarily, we are interested in IPMMU-VMSA and I hope that it will be the first 
candidate.
It is VMSA-compatible IOMMU that integrated in the newest Renesas R-Car Gen3 
SoCs (ARM).
I will push IPMMU-VMSA support in a while.

With regard to the patch series, it was rebased on Xen 4.9.0-rc2 and based on 
RFC patch series
I pushed some time ago[1]: 
- Patches 1 and 3 already have Julien's Rb.
- Patches 2, 4, 9 were reworked.
- Patch 5 was left untouched. 
- Patches 6-8 have light/cosmetic changes. 
- Patch 10 is new.

Not really sure about x86-related changes (especially patch 2) since I had no 
possibility to check.
Hope that I haven't broken anything for x86, but confirmation is needed.

You can find patch series here.
repo: https://github.com/otyshchenko1/xen.git branch: non_shared_iommu_v1

Thank you.

[1] [RFC PATCH 0/9] "Non-shared" IOMMU support on ARM
https://lists.xenproject.org/archives/html/xen-devel/2017-03/msg01905.html

Oleksandr Tyshchenko (10):
  xen/device-tree: Add dt_count_phandle_with_args helper
  iommu: Add extra order argument to the IOMMU APIs and platform
    callbacks
  xen/arm: p2m: Add helper to convert p2m type to IOMMU flags
  xen/arm: p2m: Update IOMMU mapping whenever possible if page table is
    not shared
  iommu/arm: Re-define iommu_use_hap_pt(d) as iommu_hap_pt_share
  iommu: Add extra use_iommu argument to iommu_domain_init()
  iommu/arm: Add alloc_page_table platform callback
  iommu: Split iommu_hwdom_init() into arch specific parts
  xen/arm: Add use_iommu flag to xen_arch_domainconfig
  xen/arm: domain_build: Don't expose the "iommus" property to the guest

 tools/libxl/libxl_arm.c                       | 10 +++++
 xen/arch/arm/domain.c                         |  2 +-
 xen/arch/arm/domain_build.c                   |  4 ++
 xen/arch/arm/p2m.c                            | 10 ++++-
 xen/arch/x86/domain.c                         |  2 +-
 xen/arch/x86/mm.c                             | 11 +++--
 xen/arch/x86/mm/p2m-ept.c                     | 21 +---------
 xen/arch/x86/mm/p2m-pt.c                      | 26 ++----------
 xen/arch/x86/mm/p2m.c                         | 38 +++--------------
 xen/arch/x86/x86_64/mm.c                      |  5 ++-
 xen/common/device_tree.c                      |  7 ++++
 xen/common/grant_table.c                      | 10 ++---
 xen/drivers/passthrough/amd/iommu_map.c       | 49 ++++++++++++++++++++--
 xen/drivers/passthrough/amd/pci_amd_iommu.c   |  8 ++--
 xen/drivers/passthrough/arm/iommu.c           | 12 +++++-
 xen/drivers/passthrough/arm/smmu.c            | 44 +++++++++++++++++++-
 xen/drivers/passthrough/iommu.c               | 60 +++++++++------------------
 xen/drivers/passthrough/vtd/iommu.c           | 48 ++++++++++++++++++++-
 xen/drivers/passthrough/vtd/x86/vtd.c         |  4 +-
 xen/drivers/passthrough/x86/iommu.c           | 42 +++++++++++++++++--
 xen/include/asm-arm/iommu.h                   |  7 +++-
 xen/include/asm-arm/p2m.h                     | 34 +++++++++++++++
 xen/include/asm-x86/hvm/svm/amd-iommu-proto.h |  8 ++--
 xen/include/public/arch-arm.h                 |  5 +++
 xen/include/xen/device_tree.h                 | 19 +++++++++
 xen/include/xen/iommu.h                       | 26 ++++++++----
 26 files changed, 353 insertions(+), 159 deletions(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

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