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

[XEN v5 06/11] xen/Arm: vGICv3: Fix emulation of ICC_SGI1R on AArch32


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Date: Mon, 5 Dec 2022 13:26:32 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=++4q5HIw11G096d2CZkM4llMeSXkXZxp6mjZ0joYBGE=; b=aXrxyz2hdKqZa1VW2kDTYzLJk9id/GaPXuVmVYGTgnQmgZbj7TTlHT09F0Jv6HsswaQTwLh9vXhGxv/AnwPoAdPawyfLZ3aU0xkTiBxIbGExoRjUpI5Yv1E0pGgWK1CB5X5f8y+Upq1ituAz5NXcmiPU5noOrll4z1T6OHW0kN5wFeFRuz+B004KGDDxFj4BrAEfY3wb5W4f5q4HRKHnqZDg4KZK8kQI9g9Qvtn3hB148rQXCfqyiF/XRM5coG/FnV34k+NCWEzTQ3LbJsJSzoUqZryTm65uRu/KOMw4u8Dh8BeCWSz+NJee+P8YzrHOcc1urwg3LNwme5EcUrVGTw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJ5WtD8GNHCGS2h68S2Lkl4wfTP+NARAd5Rq132eg0El/avevL/sgy/eL//8TNsEgqJyjX4MKAhmQT7nTpcTmzRjWaHG9fDJenReruDVVCT4kYbrH1ZXWT7y/8e4zLRnYd79TLS4TZTcI8NmW0drIsFbUqr+pmMEtnVzHv1u0sP0HhG6LEt/P5TIYCfZ1J0XElxTHXbS7I/Byzw935xUKLE1QF8MARBa6PVTbPqMX2paXVXjra0i1AdFq3Ro7MMPPPvV2grBrV3GFXnfKBcXLXZ39LGyD7I7geQCwKtmev4KHSwuVzV55Mu/1aSe0MLX0r3hAqyHXwB+3Js6E+PLqw==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefanos@xxxxxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <michal.orzel@xxxxxxx>, <jgrall@xxxxxxxxxx>, <burzalodowa@xxxxxxxxx>, "Ayan Kumar Halder" <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Mon, 05 Dec 2022 14:51:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Refer Arm IHI 0069H ID020922, 12.5.23, ICC_SGI1R is a 64 bit register on
AArch32 systems. Thus, the function needs to change to reflect this.
The reason being 'register_t' is defined as 'u32' on AArch32.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
---
Changes from :-
v1 - 1. Updated the commit message.

v2 - 1. No changes.

v3 - 1. No changes.

v4 - 1. No changes.

 xen/arch/arm/vgic-v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c
index e0b636b95f..47575d4944 100644
--- a/xen/arch/arm/vgic-v3.c
+++ b/xen/arch/arm/vgic-v3.c
@@ -1483,7 +1483,7 @@ write_reserved:
     return 1;
 }
 
-static bool vgic_v3_to_sgi(struct vcpu *v, register_t sgir)
+static bool vgic_v3_to_sgi(struct vcpu *v, uint64_t sgir)
 {
     int virq;
     int irqmode;
-- 
2.17.1




 


Rackspace

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