Skip to content

Add a generic layer on top of intel and amd iommu code

Wei Wang2 xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add a generic layer on top of intel and amd iommu codexen/arch/x86/domctl.c xen/arch/x86/hvm/Makefile xen/arch/x86/hvm/iommu.c +4 more+154 -540 replies
2/4Add a generic layer on top of intel and amd iommu codexen/arch/x86/hvm/vmx/vtd/intel-iommu.c+12 -90 replies
3/4Add a generic layer on top of intel and amd iommu codexen/arch/x86/hvm/svm/amd_iommu/amd-iommu-detect.c xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-map.c xen/arch/x86/hvm/svm/amd_iommu/pci-amd-iommu.c +3 more+279 -220 replies
4/4Add a generic layer on top of intel and amd iommu codexen/arch/x86/mm/p2m.c+15 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [IOMMU][PATCH 0/4] Add a generic layer on top of intel and amd iommu code

Hi list,
The following patches add a generic layer on top of intel and amd iommu codes. All
common interfaces exposed to Xen are moved into a new file (/xen/arch/x86/hvm/iommu.c). Also, iommu_ops is defined to perform platform-dependent operations. A marco iommu_enabled is defined to check if
intel or amd h/w is present.

 b/diffstat                                        |  711
++++++++++++++++++++++
 b/xen/arch/x86/hvm/iommu.c                        |  132 ++++
 xen/arch/x86/domctl.c                             |    6
 xen/arch/x86/hvm/Makefile                         |    1
 xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-detect.c |    2
 xen/arch/x86/hvm/svm/amd_iommu/amd-iommu-map.c    |   32
 xen/arch/x86/hvm/svm/amd_iommu/pci-amd-iommu.c    |  212 +++++-
 xen/arch/x86/hvm/svm/intr.c                       |   41 +
 xen/arch/x86/hvm/vioapic.c                        |    2
 xen/arch/x86/hvm/vmx/vtd/intel-iommu.c            |   21
 xen/arch/x86/hvm/vmx/vtd/io.c                     |   53 -
 xen/arch/x86/mm/p2m.c                             |   17
 xen/include/asm-x86/hvm/iommu.h                   |    3
 xen/include/asm-x86/hvm/svm/amd-iommu-defs.h      |    5
 xen/include/asm-x86/hvm/svm/amd-iommu-proto.h     |    9
 xen/include/asm-x86/iommu.h                       |   11
 16 files changed, 1171 insertions(+), 87 deletions(-)

Thanks,

Wei

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy