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

Re: [RFC PATCH 19/19] arm/gicv4: Add GICv4 to the build system


  • To: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • From: Mykola Kvach <xakep.amatop@xxxxxxxxx>
  • Date: Thu, 19 Feb 2026 13:30:00 +0200
  • Arc-authentication-results: i=1; mx.google.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+0dXSeRtWCKix83gT4AX0pNlKVs2OTwhYRewJnqDpz4=; fh=S1TgsMYO/ju21WOcmYTQxMlAU8ImCjuw50drwKkfBt8=; b=NWSB7AyFyFQ6jscDw/7CAvmNvzzu2+RDCsT+WlYMSMGBsV1heiQUX22NZZss+p5xZ4 zmHT2693wdq7ij65C9prlZIayVFqv2ou3bRD1j+C8YW3WgfkgKa2wvlskR+0lrCRF87x xPu/dYeiW19cNplP+wXZpK1SyifBiZEbJGpQ9qlj+1YWWX9rMd4N+llS7p6/Di//xcTQ mlmULgX/TvqQxaG0CWAZtfD8TcyV/JmGx9JBpYI4pwKlcgoILez1rh0Vu7/09Zq4jRom MseQEMrdTU8agO5iBvg09LAsyqc+7uEXu27k7jj13M3t4YTm7rwALbgBWSDh3GyGLctm 69sA==; darn=lists.xenproject.org
  • Arc-seal: i=1; a=rsa-sha256; t=1771500694; cv=none; d=google.com; s=arc-20240605; b=cuWTp9KT9ntigLklIXtGzAHDxNDxWb/ynnkuQibxafzCYl5vlHvddS8n3cpAevZr/D xXIl2G45ZlwVkOXQCV+HYnoSQW7kS15FbadAQ1yGKmvCIsaH9AHzO2WVLSpp1qLpbueG l/7nX4QbD0jw/KZSbB3LLd3PeyXOaxqYlMmID3nx55Z8iI5X405gFJ7qzdqpeb37CquR mifcodRHxrO7xuT2+db1t1vDs+AYRO/NSF67k6S50x9tdgr+bwM7hLLqtLEAo7iB+Fl/ LuCzhkWy5nM79ZNI7PjWNA0cmWsz3v98/KYDx/uaugBO2WeMRe0NGWzrUgrCq6vicMLy VgCg==
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 19 Feb 2026 11:31:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Feb 2, 2026 at 6:14 PM Mykyta Poturai <Mykyta_Poturai@xxxxxxxx> wrote:
>
> Add a config option to enable GICv4 support and include the
> corresponding source file in the build system.
>
> Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
> ---
>  xen/arch/arm/Kconfig  | 6 ++++++
>  xen/arch/arm/Makefile | 1 +
>  2 files changed, 7 insertions(+)
>
> diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig
> index 442d353b43..c18eca9f9a 100644
> --- a/xen/arch/arm/Kconfig
> +++ b/xen/arch/arm/Kconfig
> @@ -255,6 +255,12 @@ config ARM64_BTI
>           Branch Target Identification support.
>           This feature is not supported in Xen.
>
> +config GICV4
> +       bool "GICv4 driver"

nit: I would rename this to something more specific, e.g.:
    "GICv4 vLPI direct injection (experimental)",
as this is not a standalone GIC driver but v4 ITS extensions for direct
vLPI delivery.

It may also be worth gating it under "if UNSUPPORTED", since this builds
on the ITS code path which is currently marked as unsupported.

> +       depends on GICV3 && HAS_ITS
> +       help
> +         Driver for ARM Generic Interrupt Controller v4 extension.

Maybe expand the help text a bit, for example:

  Enable direct injection of vLPIs using the GICv4 ITS extensions.

  This adds support for vPE/vLPI management via ITS commands such as
  VMAPP, VMAPTI and (on vCPU migration) VMOVP, plus handling of per-vPE
  doorbell LPIs used by Xen to reschedule vCPUs when vLPIs are pending.

  Note: This relies on the (currently unsupported) ITS code path in Xen
  and is considered experimental.


Best regards,
Mykola

> +
>  source "arch/arm/tee/Kconfig"
>
>  config PARTIAL_EMULATION
> diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
> index 95bc7ad25e..8569df571b 100644
> --- a/xen/arch/arm/Makefile
> +++ b/xen/arch/arm/Makefile
> @@ -27,6 +27,7 @@ obj-y += gic.o
>  obj-$(CONFIG_GICV2) += gic-v2.o
>  obj-$(CONFIG_GICV3) += gic-v3.o
>  obj-$(CONFIG_HAS_ITS) += gic-v3-its.o
> +obj-$(CONFIG_GICV4) += gic-v4-its.o
>  obj-$(CONFIG_HAS_ITS) += gic-v3-lpi.o
>  obj-y += guestcopy.o
>  obj-y += guest_atomics.o
> --
> 2.51.2



 


Rackspace

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