[PATCH v4 0/5] Make x86 IOMMU driver support configurable

Xenia Ragiadakou posted 5 patches 1 year, 3 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230124124142.38500-1-burzalodowa@gmail.com
xen/arch/x86/hvm/vmx/vmx.c               | 41 +++++++++++++++
xen/arch/x86/include/asm/hvm/hvm.h       | 10 ++++
xen/arch/x86/include/asm/iommu.h         |  4 --
xen/drivers/passthrough/Kconfig          | 22 +++++++-
xen/drivers/passthrough/vtd/intremap.c   | 36 -------------
xen/drivers/passthrough/vtd/iommu.c      |  5 +-
xen/drivers/passthrough/vtd/x86/Makefile |  1 -
xen/drivers/passthrough/vtd/x86/hvm.c    | 64 ------------------------
xen/drivers/passthrough/x86/hvm.c        | 50 ++++++++++++++++--
xen/drivers/passthrough/x86/iommu.c      |  5 ++
xen/include/xen/iommu.h                  |  8 ++-
11 files changed, 131 insertions(+), 115 deletions(-)
delete mode 100644 xen/drivers/passthrough/vtd/x86/hvm.c
[PATCH v4 0/5] Make x86 IOMMU driver support configurable
Posted by Xenia Ragiadakou 1 year, 3 months ago
This series aims to provide a means to render the iommu driver support for x86
configurable. Currently, irrespectively of the target platform, both AMD and
Intel iommu drivers are built. This is the case because the existent Kconfig
infrastructure does not provide any facilities for finer-grained configuration.

The series adds two new Kconfig options, AMD_IOMMU and INTEL_IOMMU, that can be
used to generate a tailored iommu configuration for a given platform.

This version of the series is rebased on top of the current staging and
addresses the comments made on version 3.
Patches
"[v3 1/8] x86/iommu: amd_iommu_perdev_intremap is AMD-Vi specific"
"[v3 2/8] x86/iommu: iommu_igfx and iommu_qinval are Intel VT-d specific"
"[v3 4/8] x86/acpi: separate AMD-Vi and VT-d specific functions"
are not included in this series because they have been already merged.

Xenia Ragiadakou (5):
  x86/iommu: snoop control is allowed only by Intel VT-d
  x86/iommu: make code addressing CVE-2011-1898 no VT-d specific
  x86/iommu: call pi_update_irte through an hvm_function callback
  x86/dpci: move hvm_dpci_isairq_eoi() to generic HVM code
  x86/iommu: make AMD-Vi and Intel VT-d support configurable

 xen/arch/x86/hvm/vmx/vmx.c               | 41 +++++++++++++++
 xen/arch/x86/include/asm/hvm/hvm.h       | 10 ++++
 xen/arch/x86/include/asm/iommu.h         |  4 --
 xen/drivers/passthrough/Kconfig          | 22 +++++++-
 xen/drivers/passthrough/vtd/intremap.c   | 36 -------------
 xen/drivers/passthrough/vtd/iommu.c      |  5 +-
 xen/drivers/passthrough/vtd/x86/Makefile |  1 -
 xen/drivers/passthrough/vtd/x86/hvm.c    | 64 ------------------------
 xen/drivers/passthrough/x86/hvm.c        | 50 ++++++++++++++++--
 xen/drivers/passthrough/x86/iommu.c      |  5 ++
 xen/include/xen/iommu.h                  |  8 ++-
 11 files changed, 131 insertions(+), 115 deletions(-)
 delete mode 100644 xen/drivers/passthrough/vtd/x86/hvm.c

-- 
2.37.2