[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Fri, 10 Nov 2023 12:56:15 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3w8Xsi4wnPxswAFvPOhXxXIV1tEKsc1WOPhc1i6tJPg=; b=b0YDifWYD55gXq+AolwyuZWwmzM4gjQS0KZ7YC0rdRcCPh1+lu+wsDUxJKvYDIG0lEAHMcJ5M53hYo92+TFVR1dHXqWZZfofKqqsVF0N3x9cC82GLIZx+krSLjonAaCE1L4Avqp+t1JywbZ/+S/n7HkL3jRvEPw4wyk7Oq2MpnSYnnYgUb3yewSacNxa7mz13Y1ol7EYCyESL9dC3kAtk/4Y0ycivVaZWFT+bntw1tiN1keXPlmGZVLk08UNbG78mW1/74yB8b4locLp+5WZ1iBaeP8Qs2eN1836Uwfy0boqOLAwquuRoFigFGZLlPpugyEc/o1gr75WKiEZFJlALg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UCL+EFNSQqbN67dLlM/pGAUUzC/hKdX1tkDs/LiNoCHBPIHsozuT+e8wv7PFqoGagBXOAS1PcuP0zXzP4SPUKaBM38Yp/0KY45Pyf06BeXGNqDXjYndlqcXtoMXCvJbGUtnwDzNBkoh74LbnqQxOO9GObmrHw0zxvH7w0vCe7cuQX562z2fWfcU9IMq8prAbhO8ZrZyMWTLjD5BaWNdoY9+NQvDIVgRDn+jWBdpabYuNU05FMHnc+7W7Mf5jCpFYCGBgkF++UEpLJRePLvs1PMtj1mFq51ZqZxp/ho0wG7V+aAu0czEOgH9yVWynrMEJdTiTdAEpogeeZUVDNi7ydA==
  • Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Fri, 10 Nov 2023 13:12:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHaE9VKxM0jrsRdakKdygK99IG2mQ==
  • Thread-topic: [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

-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.