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

Re: [PATCH v4 11/12] doc/man: update description for nr_spis with eSPI


  • To: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Wed, 27 Aug 2025 23:20:04 +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=arcselector10001; 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=CNUd878vEBAh3MyxstrYrmEdvXxxtBuPcqoIcDkdPOE=; b=KFEqQvCtHDcSnABElloIuyefH/KhsUwbbM4jtHrXks+lhdqQrzJzn0SMvhsA6DzSj+je/cn79WnheWIqmyKYuQzCrdhfHwENG0LMuG04nNHjvrRqH4XDjhMvu6jTZmanPnAR9bHC6ghE9205a3sRH6/whtzSpn5jOjZm9p6erfAkoIO79YtQItLMu31C4IGSZ2cKEoBBkMy1Ix5UDDrkJycxzgJBtaFuJ9aueLyuJuS3GjF48WBHq3ShIQYURHA52kQWIIlt09LXXz7lWszBLoXddbhqeE0rpHi0nV4JHlaTx/EGVT9FBURhrh1U8f1wEyJala1FO1Lcffe2q65yhA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fiu6NdorCobLyuWDu7GF0IO0rDCBg6WM1nOsbXrAbrcnar5f6QS0gkR9g5bLCgMoTnnsS3P3gnqIOMaWmMpUTURUtfHER6Ov0TYjPQxaGmRRXICDoR8GxhVWLCGxVfzeJ/8R74X7GpGsaJLJPdu19Rt7uPRl77otBFO76gjQfNG5Ujx1yctIat8AemzyDGKekwybJdfTQp/M2C3g1SFyRLFC3dDf1Bz2c12eN/ue2sG3fqeBy4Y501BMpj5PK9jhXv1cmnIMReTqLE6AmydtmA7XuS7pmLx1hDylXDGlyZ3Rb7m9+29s/KZsZo3859pleB9EXc5GuFATwjfJ3FmUsg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "olekstysh@xxxxxxxxx" <olekstysh@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 27 Aug 2025 23:20:20 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcF4DXobE1p0eyakyyCN/Uk7KDQg==
  • Thread-topic: [PATCH v4 11/12] doc/man: update description for nr_spis with eSPI

Hi Leonid,

Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx> writes:

> Since eSPI support has been introduced, update the documentation with
> the appropriate description.
>
> Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>
>
> ---
> Changes in V4:
> - introduced this patch
> ---
>  docs/man/xl.cfg.5.pod.in | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in
> index 5362fb0e9a..292ab10331 100644
> --- a/docs/man/xl.cfg.5.pod.in
> +++ b/docs/man/xl.cfg.5.pod.in
> @@ -3072,11 +3072,14 @@ interval of colors (such as "0-4").
>  =item B<nr_spis="NR_SPIS">
>  
>  An optional integer parameter specifying the number of SPIs (Shared
> -Peripheral Interrupts) to allocate for the domain. Max is 960 SPIs. If
> -the `nr_spis` parameter is not specified, the value calculated by the 
> toolstack
> -will be used for the domain. Otherwise, the value specified by the `nr_spis`
> -parameter will be used. The number of SPIs should match the highest interrupt
> -ID that will be assigned to the domain.
> +Peripheral Interrupts) to allocate for the domain. Max is 960 for regular 
> SPIs
> +or 5088 for eSPIs (Extended SPIs). The eSPIs includes an additional 1024 SPIs

Well, this is awkward and confusing now. You can't allocate 5088 SPIs,
because no GIC does not support this. Number of SPIs is
960 (regular SPIs) + 1024 (eSPIs) = 1984.

What you are describing is "max SPI number", but the parameter is called
"nr_spis". If we want to leave things consistent, we either need to
deprecate nr_spis in favor of max_spi_nr, or severely rework nr_spi
logic, so it can have values from 0 to 1984...

Personally, I'd prefer max_spi_nr approach, because it will be less
confusing for a user. I am curios what ARM maintainers think about this.


> +from the eSPI range (4096 to 5119) if the hardware supports extended SPIs
> +(GICv3.1+) and CONFIG_GICV3_ESPI is enabled. If the `nr_spis` parameter is 
> not
> +specified, the value calculated by the toolstack will be used for the domain.
> +Otherwise, the value specified by the `nr_spis` parameter will be used. The
> +number of SPIs should match the highest interrupt ID that will be assigned to
> +the domain.
>  
>  =item B<trap_unmapped_accesses=BOOLEAN>

-- 
WBR, Volodymyr


 


Rackspace

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