Skip to content

arm: Add GICv3 support to the New VGIC

Mykyta Poturai xen-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest25 patches 0 repliesNew
  2. v14 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Split changes into smaller pieces similar to new VGIC v2 patches
- Refactor some common code to remove ifdefs
- Remove the "move get/put irq" change as it is no longer needed
- Replace GICD base change with proper offset calculation
- Fixed Kconfig dependencies

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25arm: vgic: its: Decouple HW and virtual ITSxen/arch/arm/gic-v3-its.c xen/arch/arm/gic-v3-lpi.c xen/arch/arm/include/asm/gic_v3_its.h +2 more+258 -2070 replies
2/25arm: new VGIC: Add GICv3 world switch backendxen/arch/arm/vgic/vgic-v3.c xen/arch/arm/vgic/vgic.c xen/arch/arm/vgic/vgic.h+234 -30 replies
3/25arm: new VGIC: Add GICv3 MMIO handling frameworkxen/arch/arm/include/asm/gic_v3_defs.h xen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-init.c +3 more+475 -80 replies
4/25arm: new VGIC: Add GICv3 CTLR, IIDR, TYPER handlersxen/arch/arm/include/asm/gic_v3_defs.h xen/arch/arm/vgic/vgic-mmio-v3.c xen/arch/arm/vgic/vgic.h+73 -10 replies
5/25arm: new VGIC: Add GICv3 redistributor IIDR and TYPER handlerxen/arch/arm/vgic/vgic-mmio-v3.c+63 -20 replies
6/25arm: new VGIC: Add GICv3 IDREGS register handlerxen/arch/arm/vgic/vgic-mmio-v3.c+15 -20 replies
7/25arm: new VGIC: Add GICv3 IROUTER register handlersxen/arch/arm/vgic/vgic-mmio-v3.c+58 -10 replies
8/25arm: new VGIC: Add GICv3 SGI system register trap handlerxen/arch/arm/include/asm/gic_v3_defs.h xen/arch/arm/vgic/vgic-mmio-v3.c xen/arch/arm/vgic/vgic.c +1 more+160 -40 replies
9/25arm: new VGIC: vgic_init: implement map_resourcesxen/arch/arm/vgic/vgic-init.c xen/arch/arm/vgic/vgic-v3.c xen/arch/arm/vgic/vgic.c +1 more+93 -120 replies
10/25arm: new VGIC: Add vgic_v3_enablexen/arch/arm/vgic/vgic-init.c xen/arch/arm/vgic/vgic-v3.c xen/arch/arm/vgic/vgic.h+15 -00 replies
11/25arm: new VGIC: Add alternative redist region storagexen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-v3.c+13 -00 replies
12/25arm: new VGIC: Wire new GICv3 into the build systemxen/arch/arm/Kconfig xen/arch/arm/vgic/Makefile+2 -10 replies
13/25arm: new VGIC: Handle ITS related GICv3 redistributor registersxen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-mmio-v3.c+169 -20 replies
14/25arm: new VGIC: its: Introduce ITS emulation file with MMIO frameworkxen/arch/arm/include/asm/gic_v3_defs.h xen/arch/arm/include/asm/gic_v3_its.h xen/arch/arm/include/asm/new_vgic.h +4 more+245 -10 replies
15/25arm: new VGIC: its: Introduce ITS device listxen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-its.c+113 -00 replies
16/25arm: new VGIC: its: Implement basic ITS register handlersxen/arch/arm/include/asm/gic_v3_defs.h xen/arch/arm/include/asm/gic_v3_its.h xen/arch/arm/include/asm/new_vgic.h +3 more+546 -130 replies
17/25arm: new VGIC: its: Read initial LPI pending tablexen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-its.c+109 -00 replies
18/25arm: new VGIC: its: Allow updates of LPI configuration tablexen/arch/arm/vgic/vgic-its.c+48 -00 replies
19/25arm: new VGIC: its: Add LPI translation cache definitionxen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-its.c+198 -00 replies
20/25arm: new VGIC: its: Implement ITS command queue command handlersxen/arch/arm/include/asm/gic_v3_its.h xen/arch/arm/vgic/vgic-its.c xen/arch/arm/vgic/vgic.h+908 -50 replies
21/25arm: new VGIC: its: Implement MSI injection in ITS emulationxen/arch/arm/vgic/vgic-its.c+112 -00 replies
22/25arm: new VGIC: its: Implement MMIO-based LPI invalidationxen/arch/arm/include/asm/new_vgic.h xen/arch/arm/vgic/vgic-mmio-v3.c xen/arch/arm/vgic/vgic-mmio.h+78 -30 replies
23/25arm: new VGIC: its: Enable ITS emulation as a virtual MSI controllerxen/arch/arm/vgic/vgic-init.c xen/arch/arm/vgic/vgic-its.c xen/arch/arm/vgic/vgic-mmio-v3.c +1 more+55 -30 replies
24/25arm: new VGIC: its: Wire new ITS into the build systemxen/arch/arm/Kconfig xen/arch/arm/vgic/Makefile+3 -20 replies
25/25arm: new VGIC: Improve MMIO handlingxen/arch/arm/vgic/vgic-mmio.c+7 -70 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [XEN PATCH v2 00/25] arm: Add GICv3 support to the New VGIC

Hi All.

This series aims to add GICv3 support to the New VGIC. It adds support for the GICv3 distributor, redistributor, sysreg and ITS interfaces. This will allow Xen to emulate level-triggered interrupts with GICv3 and will make the NEW_VGIC more complete and usable.

The series also introduces some refactoring of the ITS code to allow for easier VITS implementation switching.

The bulk of the code is taken from the Linux Kernel v6.0 and adapted to the existing Xen codebase.

Changes in v2:
- Split changes into smaller pieces similar to new VGIC v2 patches
- Refactor some common code to remove ifdefs
- Remove the "move get/put irq" change as it is no longer needed
- Replace GICD base change with proper offset calculation
- Fixed Kconfig dependencies

Mykyta Poturai (25):
arm: vgic: its: Decouple HW and virtual ITS
arm: new VGIC: Add GICv3 world switch backend
arm: new VGIC: Add GICv3 MMIO handling framework
arm: new VGIC: Add GICv3 CTLR, IIDR, TYPER handlers
arm: new VGIC: Add GICv3 redistributor IIDR and TYPER handler
arm: new VGIC: Add GICv3 IDREGS register handler
arm: new VGIC: Add GICv3 IROUTER register handlers
arm: new VGIC: Add GICv3 SGI system register trap handler
arm: new VGIC: vgic_init: implement map_resources
arm: new VGIC: Add vgic_v3_enable
arm: new VGIC: Add alternative redist region storage
arm: new VGIC: Wire new GICv3 into the build system
arm: new VGIC: Handle ITS related GICv3 redistributor registers
arm: new VGIC: its: Introduce ITS emulation file with MMIO framework
arm: new VGIC: its: Introduce ITS device list
arm: new VGIC: its: Implement basic ITS register handlers
arm: new VGIC: its: Read initial LPI pending table
arm: new VGIC: its: Allow updates of LPI configuration table
arm: new VGIC: its: Add LPI translation cache definition
arm: new VGIC: its: Implement ITS command queue command handlers
arm: new VGIC: its: Implement MSI injection in ITS emulation
arm: new VGIC: its: Implement MMIO-based LPI invalidation
arm: new VGIC: its: Enable ITS emulation as a virtual MSI controller
arm: new VGIC: its: Wire new ITS into the build system
arm: new VGIC: Improve MMIO handling

 xen/arch/arm/Kconfig                   |    5 +-
 xen/arch/arm/gic-v3-its.c              |  208 +--
 xen/arch/arm/gic-v3-lpi.c              |   20 -
 xen/arch/arm/include/asm/gic_v3_defs.h |   13 +-
 xen/arch/arm/include/asm/gic_v3_its.h  |   82 +
 xen/arch/arm/include/asm/new_vgic.h    |   93 +-
 xen/arch/arm/include/asm/vgic.h        |   29 +
 xen/arch/arm/vgic-v3-its.c             |  206 ++-
 xen/arch/arm/vgic/Makefile             |    3 +
 xen/arch/arm/vgic/vgic-init.c          |   24 +-
 xen/arch/arm/vgic/vgic-its.c           | 2022 ++++++++++++++++++++++++
 xen/arch/arm/vgic/vgic-mmio-v3.c       | 1095 +++++++++++++
 xen/arch/arm/vgic/vgic-mmio.c          |   19 +-
 xen/arch/arm/vgic/vgic-mmio.h          |   38 +
 xen/arch/arm/vgic/vgic-v3.c            |  305 ++++
 xen/arch/arm/vgic/vgic.c               |   41 +-
 xen/arch/arm/vgic/vgic.h               |   54 +-
 17 files changed, 4015 insertions(+), 242 deletions(-)
 create mode 100644 xen/arch/arm/vgic/vgic-its.c
 create mode 100644 xen/arch/arm/vgic/vgic-mmio-v3.c
 create mode 100644 xen/arch/arm/vgic/vgic-v3.c
Signature · 1 line
2.34.1