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

Re: [PATCH v5 07/12] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
  • Date: Tue, 2 Sep 2025 17:06:25 +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=jIp0ZermkvYdId4d+XAtfCKgp2r+e2osQHFdaiDPTJA=; b=cvXBrNW8Hg9slBdlc4CMdBUfDS0bl2pNvzFLUBBk91uXXvGgS2qYgJp171bLShnnuUA08uvStYeazR+ZmhZMN0/Bgr4hkPi97ogN1GyhuoNSX5PCnvIGqIEJbQI7hh9120JQI7zQRq5gox3MhkF3cFHMUQeFqUIsezLsUlARuqosTwHTmQnUM7sX5CV0EJtF8/pl0BnmkMuidnCa2WWsqvUxpltA5Ps4Z7KK9aicQM8ZO5YM2xIII+xOXZUc3yEViSmqouBWl/qT4nZkRTCts9cNwrafBeOqClNmJ+yjQoP+6+yUjRGLaQ00MRsnncnt3fIFY3R3hxFPuBxM4rzwww==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QchOGZc/kdJCrmimdS3flJ8osyccZPq0C36E8oY74Jv7qOaTKTctR1No2Qv6v+j3cAYhGQj/L8rTbvqpNJ2kWvo5JxJNtZ4BXFq/+OCVkJGi4x8ze8eqg4bD3aJlBVc+lvgR2LMtxSX/vJSCEmBZfJC2QqqWe9srNjgmXk54TieFqta42wBRt4EXUo8H9j/AHph5+yPoTYqjF6B2wc56DoVTI6JhtSJeYfgx22exLzXh4NRZQPJp29qSfYR2IKiYz1TePHaundRkPN7haMaaDQt+Rn0WDuli9QxzJvU1uv2BeM6YUbDcPAzCO/BvlCEjjQivelUrkyolK9jPem+ZGA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: "olekstysh@xxxxxxxxx" <olekstysh@xxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 02 Sep 2025 17:06:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcGP7fr2aNz8WgzkeaOcGbW6a0ZbR/78+AgAA2BgA=
  • Thread-topic: [PATCH v5 07/12] xen/arm: gicv3: modify ICH_LR_PHYSICAL_MASK to allow eSPI processing

Hi Julien,

Thank you for your review.

On 02.09.25 16:53, Julien Grall wrote:
> Hi,
> 
> On 29/08/2025 17:06, Leonid Komarianskyi wrote:
>> To properly deactivate guest interrupts and allow them to be retriggered
>> after the initial trigger, the LR needs to be updated. The current
> 
> Why guest specifically? Isn't the problem the same if a physical eSPI is 
> routed to dom0? IOW, shouldn't the explaination be:
> 
> "To properly deactivate physical eSPI routed to a domain and ..."
>

I will update the commit in V6.

>> implementation ignores interrupts outside the range specified by the mask
>> 0x3FF, which only covers IRQ numbers up to 1023. To enable processing of
>> eSPI interrupts, this patch updates the mask to 0x13FF.
>>
>> Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>
>> Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
>>
>> ---
>> Changes in V5:
>> - no changes
>>
>> Changes in V4:
>> - added reviewed-by from Volodymyr Babchuk
>>
>> Changes in V3:
>> - no changes
>>
>> Changes in V2:
>> - remove unnecessary CONFIG_GICV3_ESPI ifdef guard
>> ---
>>   xen/arch/arm/include/asm/gic_v3_defs.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/xen/arch/arm/include/asm/gic_v3_defs.h b/xen/arch/arm/ 
>> include/asm/gic_v3_defs.h
>> index 3370b4cd52..e70c1a5675 100644
>> --- a/xen/arch/arm/include/asm/gic_v3_defs.h
>> +++ b/xen/arch/arm/include/asm/gic_v3_defs.h
>> @@ -211,7 +211,7 @@
>>   #define ICH_LR_VIRTUAL_SHIFT         0
>>   #define ICH_LR_CPUID_MASK            0x7
>>   #define ICH_LR_CPUID_SHIFT           10
>> -#define ICH_LR_PHYSICAL_MASK         0x3ff
>> +#define ICH_LR_PHYSICAL_MASK         0x13ff
> 
> It took me a while to understand why we are using 0x13ff rather than 
> 0x1fff. It is because eSPI range is 4096 - 5519. So in theory, it would 
> be ok to just add '0x1000'. But I think this is more confusion that it 
> is worth. So I would rather prefer if we use 0x1fff as this matches the 
> specification.
> 
> Cheers,
> 

Yes, I agree with that - it will be clearer, so I will update the mask 
to 0x1fff.

Best regards,
Leonid


 


Rackspace

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