[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/10] xen/arm/irq: allow eSPI processing in the do_IRQ function
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>
- Date: Thu, 7 Aug 2025 12:33:32 +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=x6mmEA9bHBX6D34Is5x+px4HirCrkSiiECL5U3Jl6Vc=; b=u8nSUOESQJFzuH5064QYk3OQCrecLhvjEaAFJvHvob4ZF4piiQrj5qOFyMrMG4FKjbTNEyvnp7gPQIQpiG5azNRcYiAkZQOzpkFwiPdvaBbMvgTndEoCyaxO4zIyFGHC5y4AdJ1dcmxDcNrnO5E0h7W/CHTslISTucsUlgAd1fmKFvZgzjcJDOofja6IrTBIoOL1b3Y+pWPcILKD6wAW6ZvRms9qaaPOl7iFbDsNHYLlfWD07trxVhe7ZPqnO5JjjTvpz4mEPUBlRvdEr6lBFqy13+VRSmGvH86ApKElsualSBbHxJzee7y+k1MXBa4G1S8pLXKbnN52aaDX6PjisA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qXigvCrHu7/zvi5d5U5Vv8rg0X35/CukEm8lAJh8tebdW6XVx2Pd+6zJEwPgwQcJNuWvuqi9ID1rbFyIgcOAOKmSGNIBWOerqwRFKGI/7zxdT+1FcprQfHmHChUINzbYCtm73Bi0Fu4X8t5q8HX8wqaZVXd7/vOVAOM/sc+WUf1kVCk0fP0bqtnw05KUfr165SW+ExZw2PuIBS+Axy+R6l1lUwFFQWSIOEvqUQfc/58mHd3yYZhYvf/QUH/VkeZWmY1yXQHzCoJrRQUnKAsdwL3G5DncZ055gYTd6QU+ltq963TDqCUjeo7HVA8OMV+LLjERpg2/15/9GOa7wchJtA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Leonid Komarianskyi <Leonid_Komarianskyi@xxxxxxxx>, 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, 07 Aug 2025 12:33:46 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcB5d86f8hb7ZHKUC0loGFpjDKxw==
- Thread-topic: [PATCH v2 06/10] xen/arm/irq: allow eSPI processing in the do_IRQ function
The do_IRQ() function is the main handler for processing IRQs.
Currently, due to restrictive checks, it does not process interrupt
numbers greater than 1024. This patch updates the condition to allow
the handling of interrupts from the eSPI range.
Signed-off-by: Leonid Komarianskyi <leonid_komarianskyi@xxxxxxxx>
---
Changes in V2:
- no changes
---
xen/arch/arm/gic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
index 47fccf21d8..7186c3d40a 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -341,7 +341,7 @@ void gic_interrupt(struct cpu_user_regs *regs, int is_fiq)
/* Reading IRQ will ACK it */
irq = gic_hw_ops->read_irq();
- if ( likely(irq >= GIC_SGI_STATIC_MAX && irq < 1020) )
+ if ( likely(irq >= GIC_SGI_STATIC_MAX && irq < 1020) || is_espi(irq) )
{
isb();
do_IRQ(regs, irq, is_fiq);
--
2.34.1
|