All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC XEN PATCH v2 0/5] IOMMU subsystem redesign and PV-IOMMU interface
@ 2024-06-26 15:22 TSnake41
  2024-06-26 15:22 ` [RFC XEN PATCH v2 2/5] docs/designs: Add a design document for IOMMU subsystem redesign TSnake41
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: TSnake41 @ 2024-06-26 15:22 UTC (permalink / raw)
  To: xen-devel
  Cc: TSnake41, Andrew Cooper, George Dunlap, Jan Beulich, Julien Grall,
	Stefano Stabellini, Roger Pau Monné, Lukasz Hawrylko,
	Daniel P. Smith, Mateusz Mówka,
	Marek Marczykowski-Górecki

This work has been presented at Xen Summit 2024 during the
  IOMMU paravirtualization and Xen IOMMU subsystem rework
design session.

Operating systems may want to have access to a IOMMU in order to do DMA
protection or implement certain features (e.g VFIO on Linux).

VFIO support is mandatory for framework such as SPDK, which can be useful to
implement an alternative storage backend for virtual machines [1].

In this patch series, we introduce in Xen the ability to manage several
contexts per domain and provide a new hypercall interface to allow guests
to manage IOMMU contexts.

The VT-d driver is updated to support these new features.

[1] Using SPDK with the Xen hypervisor - FOSDEM 2023

---
Changed in v2 :
* fixed Xen crash when dumping IOMMU contexts (using X debug key)
with DomUs without IOMMU
* s/dettach/detach/
* removed some unused includes
* fix dangling devices in contexts with detach

Teddy Astie (5):
  docs/designs: Add a design document for PV-IOMMU
  docs/designs: Add a design document for IOMMU subsystem redesign
  IOMMU: Introduce redesigned IOMMU subsystem
  VT-d: Port IOMMU driver to new subsystem
  xen/public: Introduce PV-IOMMU hypercall interface

 docs/designs/iommu-contexts.md       |  398 +++++++
 docs/designs/pv-iommu.md             |  105 ++
 xen/arch/x86/domain.c                |    2 +-
 xen/arch/x86/include/asm/arena.h     |   54 +
 xen/arch/x86/include/asm/iommu.h     |   44 +-
 xen/arch/x86/include/asm/pci.h       |   17 -
 xen/arch/x86/mm/p2m-ept.c            |    2 +-
 xen/arch/x86/pv/dom0_build.c         |    4 +-
 xen/arch/x86/tboot.c                 |    4 +-
 xen/common/Makefile                  |    1 +
 xen/common/memory.c                  |    4 +-
 xen/common/pv-iommu.c                |  320 ++++++
 xen/drivers/passthrough/Kconfig      |   14 +
 xen/drivers/passthrough/Makefile     |    3 +
 xen/drivers/passthrough/context.c    |  626 +++++++++++
 xen/drivers/passthrough/iommu.c      |  337 ++----
 xen/drivers/passthrough/pci.c        |   49 +-
 xen/drivers/passthrough/quarantine.c |   49 +
 xen/drivers/passthrough/vtd/Makefile |    2 +-
 xen/drivers/passthrough/vtd/extern.h |   14 +-
 xen/drivers/passthrough/vtd/iommu.c  | 1557 +++++++++++---------------
 xen/drivers/passthrough/vtd/quirks.c |   21 +-
 xen/drivers/passthrough/x86/Makefile |    1 +
 xen/drivers/passthrough/x86/arena.c  |  157 +++
 xen/drivers/passthrough/x86/iommu.c  |  104 +-
 xen/include/hypercall-defs.c         |    6 +
 xen/include/public/pv-iommu.h        |  114 ++
 xen/include/public/xen.h             |    1 +
 xen/include/xen/iommu.h              |  118 +-
 xen/include/xen/pci.h                |    3 +
 30 files changed, 2822 insertions(+), 1309 deletions(-)
 create mode 100644 docs/designs/iommu-contexts.md
 create mode 100644 docs/designs/pv-iommu.md
 create mode 100644 xen/arch/x86/include/asm/arena.h
 create mode 100644 xen/common/pv-iommu.c
 create mode 100644 xen/drivers/passthrough/context.c
 create mode 100644 xen/drivers/passthrough/quarantine.c
 create mode 100644 xen/drivers/passthrough/x86/arena.c
 create mode 100644 xen/include/public/pv-iommu.h

-- 
2.45.2



Teddy Astie | Vates XCP-ng Intern

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-26 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-26 15:22 [RFC XEN PATCH v2 0/5] IOMMU subsystem redesign and PV-IOMMU interface TSnake41
2024-06-26 15:22 ` [RFC XEN PATCH v2 2/5] docs/designs: Add a design document for IOMMU subsystem redesign TSnake41
2024-06-26 15:22 ` [RFC XEN PATCH v2 1/5] docs/designs: Add a design document for PV-IOMMU TSnake41
2024-06-26 15:22 ` [RFC XEN PATCH v2 5/5] xen/public: Introduce PV-IOMMU hypercall interface TSnake41
2024-06-26 15:22 ` [RFC XEN PATCH v2 3/5] IOMMU: Introduce redesigned IOMMU subsystem TSnake41
2024-06-26 15:22 ` [RFC XEN PATCH v2 4/5] VT-d: Port IOMMU driver to new subsystem TSnake41
2024-06-26 15:23 ` [RFC XEN PATCH v2 0/5] IOMMU subsystem redesign and PV-IOMMU interface Teddy Astie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.