[Xen-devel] [PATCH v11 0/6] add per-domain IOMMU control

Paul Durrant posted 6 patches 4 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20190913105826.2704-1-paul.durrant@citrix.com
There is a newer version of this series
docs/man/xl.cfg.5.pod.in                  |  56 ++++++
tools/libxl/libxl.c                       |   2 +
tools/libxl/libxl.h                       |  23 +++
tools/libxl/libxl_create.c                |   9 +
tools/libxl/libxl_mem.c                   |   6 +-
tools/libxl/libxl_types.idl               |   9 +
tools/libxl/libxl_utils.c                 |  15 ++
tools/libxl/libxl_utils.h                 |   1 +
tools/ocaml/libs/xc/abi-check             |  17 +-
tools/ocaml/libs/xc/xenctrl.ml            |   6 +
tools/ocaml/libs/xc/xenctrl.mli           |   7 +
tools/ocaml/libs/xc/xenctrl_stubs.c       |  17 +-
tools/xl/xl_info.c                        |   5 +-
tools/xl/xl_parse.c                       | 172 +++++++++++++------
xen/arch/arm/Kconfig                      |   1 +
xen/arch/arm/domain.c                     |  17 +-
xen/arch/arm/p2m.c                        |   4 +-
xen/arch/arm/setup.c                      |   3 +
xen/arch/x86/dom0_build.c                 |   4 +-
xen/arch/x86/domain.c                     |   2 +-
xen/arch/x86/domctl.c                     |   4 +-
xen/arch/x86/hvm/hvm.c                    |  31 ++--
xen/arch/x86/hvm/mtrr.c                   |   5 +-
xen/arch/x86/hvm/vioapic.c                |   2 +-
xen/arch/x86/hvm/vmx/vmcs.c               |   2 +-
xen/arch/x86/hvm/vmx/vmx.c                |   2 +-
xen/arch/x86/mm/mem_sharing.c             |   2 +-
xen/arch/x86/mm/p2m-ept.c                 |   4 +-
xen/arch/x86/mm/p2m.c                     |   4 +-
xen/arch/x86/mm/paging.c                  |   2 +-
xen/arch/x86/setup.c                      |   3 +
xen/arch/x86/x86_64/mm.c                  |   2 +-
xen/common/domain.c                       |  16 +-
xen/common/memory.c                       |   4 +-
xen/common/sysctl.c                       |   2 +
xen/common/vm_event.c                     |   2 +-
xen/drivers/passthrough/Kconfig           |   3 +
xen/drivers/passthrough/amd/iommu_guest.c |   2 +-
xen/drivers/passthrough/amd/iommu_init.c  |   5 +-
xen/drivers/passthrough/device_tree.c     |  18 +-
xen/drivers/passthrough/io.c              |   8 +-
xen/drivers/passthrough/iommu.c           | 198 ++++++++--------------
xen/drivers/passthrough/pci.c             |  28 +--
xen/drivers/passthrough/vtd/iommu.c       |  18 +-
xen/drivers/passthrough/vtd/x86/hvm.c     |   2 +-
xen/drivers/passthrough/x86/iommu.c       |  99 +----------
xen/include/asm-arm/iommu.h               |   3 -
xen/include/asm-x86/iommu.h               |  15 +-
xen/include/public/domctl.h               |  15 +-
xen/include/public/sysctl.h               |   6 +-
xen/include/xen/iommu.h                   |  46 ++---
xen/include/xen/sched.h                   |  13 +-
xen/xsm/flask/hooks.c                     |  18 +-
53 files changed, 533 insertions(+), 427 deletions(-)
[Xen-devel] [PATCH v11 0/6] add per-domain IOMMU control
Posted by Paul Durrant 4 years, 7 months ago
These are revisions of the remaining uncommitted patches from my
previous series:

https://lists.xenproject.org/archives/html/xen-devel/2019-08/msg01737.html

This series (particlarly patch #6) needs to be applied after:

https://lists.xenproject.org/archives/html/xen-devel/2019-09/msg01204.html

to avoid an abi-check failure.

Paul Durrant (7):
  Ian's abi-check fix
  domain: introduce XEN_DOMCTL_CDF_iommu flag
  use is_iommu_enabled() where appropriate...
  sysctl / libxl: report whether IOMMU/HAP page table sharing is
    supported
  remove late (on-demand) construction of IOMMU page tables
  iommu: tidy up iommu_use_hap_pt() and need_iommu_pt_sync() macros
  introduce a 'passthrough' configuration option to xl.cfg...

 docs/man/xl.cfg.5.pod.in                  |  56 ++++++
 tools/libxl/libxl.c                       |   2 +
 tools/libxl/libxl.h                       |  23 +++
 tools/libxl/libxl_create.c                |   9 +
 tools/libxl/libxl_mem.c                   |   6 +-
 tools/libxl/libxl_types.idl               |   9 +
 tools/libxl/libxl_utils.c                 |  15 ++
 tools/libxl/libxl_utils.h                 |   1 +
 tools/ocaml/libs/xc/abi-check             |  17 +-
 tools/ocaml/libs/xc/xenctrl.ml            |   6 +
 tools/ocaml/libs/xc/xenctrl.mli           |   7 +
 tools/ocaml/libs/xc/xenctrl_stubs.c       |  17 +-
 tools/xl/xl_info.c                        |   5 +-
 tools/xl/xl_parse.c                       | 172 +++++++++++++------
 xen/arch/arm/Kconfig                      |   1 +
 xen/arch/arm/domain.c                     |  17 +-
 xen/arch/arm/p2m.c                        |   4 +-
 xen/arch/arm/setup.c                      |   3 +
 xen/arch/x86/dom0_build.c                 |   4 +-
 xen/arch/x86/domain.c                     |   2 +-
 xen/arch/x86/domctl.c                     |   4 +-
 xen/arch/x86/hvm/hvm.c                    |  31 ++--
 xen/arch/x86/hvm/mtrr.c                   |   5 +-
 xen/arch/x86/hvm/vioapic.c                |   2 +-
 xen/arch/x86/hvm/vmx/vmcs.c               |   2 +-
 xen/arch/x86/hvm/vmx/vmx.c                |   2 +-
 xen/arch/x86/mm/mem_sharing.c             |   2 +-
 xen/arch/x86/mm/p2m-ept.c                 |   4 +-
 xen/arch/x86/mm/p2m.c                     |   4 +-
 xen/arch/x86/mm/paging.c                  |   2 +-
 xen/arch/x86/setup.c                      |   3 +
 xen/arch/x86/x86_64/mm.c                  |   2 +-
 xen/common/domain.c                       |  16 +-
 xen/common/memory.c                       |   4 +-
 xen/common/sysctl.c                       |   2 +
 xen/common/vm_event.c                     |   2 +-
 xen/drivers/passthrough/Kconfig           |   3 +
 xen/drivers/passthrough/amd/iommu_guest.c |   2 +-
 xen/drivers/passthrough/amd/iommu_init.c  |   5 +-
 xen/drivers/passthrough/device_tree.c     |  18 +-
 xen/drivers/passthrough/io.c              |   8 +-
 xen/drivers/passthrough/iommu.c           | 198 ++++++++--------------
 xen/drivers/passthrough/pci.c             |  28 +--
 xen/drivers/passthrough/vtd/iommu.c       |  18 +-
 xen/drivers/passthrough/vtd/x86/hvm.c     |   2 +-
 xen/drivers/passthrough/x86/iommu.c       |  99 +----------
 xen/include/asm-arm/iommu.h               |   3 -
 xen/include/asm-x86/iommu.h               |  15 +-
 xen/include/public/domctl.h               |  15 +-
 xen/include/public/sysctl.h               |   6 +-
 xen/include/xen/iommu.h                   |  46 ++---
 xen/include/xen/sched.h                   |  13 +-
 xen/xsm/flask/hooks.c                     |  18 +-
 53 files changed, 533 insertions(+), 427 deletions(-)
---
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>
Cc: Christian Lindig <christian.lindig@citrix.com>
Cc: David Scott <dave@recoil.org>
Cc: George Dunlap <george.dunlap@eu.citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Julien Grall <julien.grall@arm.com>
Cc: Jun Nakajima <jun.nakajima@intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Petre Pircalabu <ppircalabu@bitdefender.com>
Cc: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: Tamas K Lengyel <tamas@tklengyel.com>
Cc: Tim Deegan <tim@xen.org>
Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Cc: Wei Liu <wl@xen.org>
-- 
2.20.1.2.gb21ebb671


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel