[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XEN v2 01/12] xen/Arm: vGICv3: Sysreg emulation is applicable for Aarch64 only
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayankuma@xxxxxxx>
- Date: Mon, 31 Oct 2022 15:13:15 +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=XCcH6I2IShWjy514ECFK3D/NJBnq9VO1ALaP7nT1HEk=; b=H6IGreBIVOArGkD5KWVUyAjEHjHMI9yN+GU3w2qeVxvXze2x9atYkfWJuo9DgcRHzjp2rUel9ROEwo/+I2HHFpiD9rJSsX/T0zSxnLxIT54HB9/R0ktvWJj/BXZWSHbXpYc2AjPSpOwu/yO06XCTccujN2S95XuCT6f/4zAUipDVb0xhJeiBJS2kE2zlNjqrw8PT4KCDexvG4AV9VNgPHjcaKWEnXG9YPIUBjOlVGuwcRWNTjh9TjrMLt3Vgk1SLshHtfsmQp0yzCx0R7QCoqaf4m6XWy73Ae/ijGYVf78QJNRIOeCzO2OoX6VO15rZvc0TJc97yLMEEUIy+PknnAA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=avRwN0G+ApTkyA8fRoS2jvSo444A4oHY6yqNU3dJ3eZ0xoe8J1lwFkSZdAR/NPJUnB8pKYY0IOnE5GTZGdooEjzuWKgWyW5GlrGn++QeDTnuVP16eVdzZVNMTZirXHUVdMM0wd2Nj84kHubGvyU7rVRtXLu7dAdxn8F95dWYBpNl3ZQiW1L9C2ZTs+8UurmDMryLyQZDP9srrLEKGSj5X9tz350gj11Whzv5iSWnY+pfIv9MOcGeKO02lhFehqWVZeA4VCiySOWy7V9WJHgK7vKkOQUbG+omUywmRmsPTzS984dYBl5VruWniUuNVQzeeBOsUcgRUX8odws0tMuboQ==
- Cc: <sstabellini@xxxxxxxxxx>, <stefanos@xxxxxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <burzalodowa@xxxxxxxxx>, Ayan Kumar Halder <ayankuma@xxxxxxx>
- Delivery-date: Mon, 31 Oct 2022 15:14:03 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Refer ARM DDI 0487G.b ID072021, EC==0b011000 is supported for Aarch64 state
only. Thus, vgic_v3_emulate_sysreg is enabled for CONFIG_ARM_64 only.
Signed-off-by: Ayan Kumar Halder <ayankuma@xxxxxxx>
---
Changes from -
v1 - 1. Updated the commit message.
xen/arch/arm/vgic-v3.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c
index 015446be17..3f4509dcd3 100644
--- a/xen/arch/arm/vgic-v3.c
+++ b/xen/arch/arm/vgic-v3.c
@@ -1519,6 +1519,7 @@ static bool vgic_v3_emulate_sgi1r(struct cpu_user_regs
*regs, uint64_t *r,
}
}
+#ifdef CONFIG_ARM_64
static bool vgic_v3_emulate_sysreg(struct cpu_user_regs *regs, union hsr hsr)
{
struct hsr_sysreg sysreg = hsr.sysreg;
@@ -1539,6 +1540,7 @@ static bool vgic_v3_emulate_sysreg(struct cpu_user_regs
*regs, union hsr hsr)
return false;
}
}
+#endif
static bool vgic_v3_emulate_cp64(struct cpu_user_regs *regs, union hsr hsr)
{
@@ -1562,8 +1564,10 @@ static bool vgic_v3_emulate_reg(struct cpu_user_regs
*regs, union hsr hsr)
{
switch (hsr.ec)
{
+#ifdef CONFIG_ARM_64
case HSR_EC_SYSREG:
return vgic_v3_emulate_sysreg(regs, hsr);
+#endif
case HSR_EC_CP15_64:
return vgic_v3_emulate_cp64(regs, hsr);
default:
--
2.17.1
|