Skip to content

per-domain IOMMU control

Paul Durrant xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6domain: introduce XEN_DOMCTL_CDF_iommutools/libxl/libxl_create.c xen/arch/arm/domain.c xen/arch/arm/setup.c +7 more+33 -72 replies
2/6use is_iommu_enabled() where appropriate...xen/arch/arm/p2m.c xen/arch/x86/dom0_build.c xen/arch/x86/domctl.c +13 more+42 -463 replies
3/6remove late (on-demand) construction of IOMMU page tablesxen/arch/arm/p2m.c xen/arch/x86/dom0_build.c xen/arch/x86/hvm/mtrr.c +14 more+42 -26313 replies
4/6make passthrough/pci.c:deassign_device() staticxen/drivers/passthrough/pci.c xen/include/xen/iommu.h+46 -472 replies
5/6iommu: tidy up iommu_us_hap_pt() and need_iommu_pt_sync() macrosxen/drivers/passthrough/iommu.c xen/include/asm-arm/iommu.h xen/include/asm-x86/iommu.h +2 more+9 -139 replies
6/6introduce a 'passthrough' configuration option to xl.cfg...docs/man/xl.cfg.5.pod.in tools/libxl/libxl.h tools/libxl/libxl_create.c +8 more+165 -102 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchAlexandru IsailaJan Beulich
1/6
2/6
3/6R-b
4/6A-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Xen-devel] [PATCH 0/6] per-domain IOMMU control

This series is base on my recent 'use stashed domain create flags' series [1] and Alexandru Isaila's 'Clean iommu_hap_pt_share enabled code' patch [2]. It ultimately introduces a new 'passthrough' option to xl.cfg to provide per-domain control over a guests IOMMU mappings.

[1] https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg02253.html
[2] https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg01708.html

Paul Durrant (6):
domain: introduce XEN_DOMCTL_CDF_iommu
use is_iommu_enabled() where appropriate...
remove late (on-demand) construction of IOMMU page tables make passthrough/pci.c:deassign_device() static
iommu: tidy up iommu_us_hap_pt() and need_iommu_pt_sync() macros introduce a 'passthrough' configuration option to xl.cfg...

 docs/man/xl.cfg.5.pod.in                  |  52 +++++++
 tools/libxl/libxl.h                       |   5 +
 tools/libxl/libxl_create.c                |  22 +++
 tools/libxl/libxl_types.idl               |   7 +
 tools/xl/xl_parse.c                       |  38 +++++
 xen/arch/arm/domain.c                     |  12 +-
 xen/arch/arm/p2m.c                        |   5 +-
 xen/arch/arm/setup.c                      |   3 +
 xen/arch/x86/dom0_build.c                 |   4 +-
 xen/arch/x86/domain.c                     |   3 +-
 xen/arch/x86/domctl.c                     |   4 +-
 xen/arch/x86/hvm/hvm.c                    |   6 +-
 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/paging.c                  |   2 +-
 xen/arch/x86/setup.c                      |   3 +
 xen/arch/x86/x86_64/mm.c                  |   2 +-
 xen/common/domain.c                       |  10 +-
 xen/common/memory.c                       |   4 +-
 xen/common/vm_event.c                     |   2 +-
 xen/drivers/passthrough/amd/iommu_guest.c |   2 +-
 xen/drivers/passthrough/device_tree.c     |  18 +--
 xen/drivers/passthrough/io.c              |   8 +-
 xen/drivers/passthrough/iommu.c           | 170 +++++++---------------
 xen/drivers/passthrough/pci.c             | 116 +++++++--------
 xen/drivers/passthrough/vtd/iommu.c       |  12 +-
 xen/drivers/passthrough/vtd/x86/hvm.c     |   2 +-
 xen/drivers/passthrough/x86/iommu.c       |  97 +-----------
 xen/include/asm-arm/iommu.h               |   3 -
 xen/include/asm-x86/iommu.h               |   4 -
 xen/include/public/domctl.h               |  10 +-
 xen/include/xen/iommu.h                   |  35 ++---
 xen/include/xen/sched.h                   |  13 +-
 37 files changed, 321 insertions(+), 370 deletions(-)

---
Cc: Alexandru Isaila <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Anthony PERARD <[email protected]>
Cc: Brian Woods <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Julien Grall <[email protected]>
Cc: Jun Nakajima <[email protected]>
Cc: Kevin Tian <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Petre Pircalabu <[email protected]>
Cc: Razvan Cojocaru <[email protected]>
Cc: "Roger Pau Monné" <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Suravee Suthikulpanit <[email protected]>
Cc: Tamas K Lengyel <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Volodymyr Babchuk <[email protected]>
Cc: Wei Liu <[email protected]>

Signature · 7 lines
2.20.1.2.gb21ebb671


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel