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

[XEN v4 11/11] xen/arm: p2m: Enable support for 32bit IPA for ARM_32


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Date: Tue, 21 Mar 2023 14:03:57 +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=8Gza/rKHn3LPp6u594sFCTvWeeH53eu8mXZJgsCI0aY=; b=f+kuTK6bQoWNtPga0XbKr9uhobwRbA5PyVdbXUSgPx3s1sWYOVO9d390s3UXa7yp2nBnbu042FC4w7iw//yck02pN3bp/7m1f4uGP/dw8Uy4o6VvL9SChT4gw65nj5lq/JkWf58GL6M508le8L6M/E/B1BuqcUur10SDw76hkNKzVpCLOTImJtIgi4mJn9nY9LSmMFO6enVcw+ikFPPiTKRb/tFse/9e9lYoZCbkA5sYVSiWDfNsIuebleGOCIYvNSPwJjoVbt8+jwMVAnAkiaYx2QcYmM6jgXTl7YJ/q2l0Kq2mgUB5kSVoe5kul8YF+Td1PM5PRHbC/OhYJ1Rgaw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpIGEp87UMZy/0S4wlZ8kVStTNu4ahW5pBJGxhCvLwpf5wXdLlmW0nVsBhEPnO2lNrgf1hsaRhnKqT6Pkz1CeA/Mjrg2TKB7WZM2EbJYxN7Dui8e94zb5uuMiI6LbgGsOFed4hIg4b8mbQDp1R5p6BvsolYVart4+js0K8hsERiETn7YOTZ+h01Bxt3bwojvnRpjNBcZNxHrLveM7i0/RYAZbA6fNoe156jWMvtv7ZoclqTXc7/cYtedQzyxzDZLjQ18le4fZuA9GIE7JeXzGNigNZdgkB4n9oHRn6iFMVyS/v8WA1Dvm/edaEh6SNEUzijvqwvGmwGwt4PeVGIidQ==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <andrew.cooper3@xxxxxxxxxx>, <george.dunlap@xxxxxxxxxx>, <jbeulich@xxxxxxxx>, <wl@xxxxxxx>, <rahul.singh@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Tue, 21 Mar 2023 14:05:45 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

The pabits, t0sz, root_order and sl0 values are the same as those for
ARM_64.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---

Changes from -

v1 - New patch.

v2 - 1. Added Ack.

v3 - 1. Dropped Ack. 
2. Rebased the patch based on the previous change.

 xen/arch/arm/p2m.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
index f34b6e6f11..20beecc6e8 100644
--- a/xen/arch/arm/p2m.c
+++ b/xen/arch/arm/p2m.c
@@ -2272,8 +2272,9 @@ void __init setup_virt_paging(void)
         unsigned int sl0;    /* Desired SL0, maximum in comment */
     } pa_range_info[] __initconst = {
 #ifdef CONFIG_ARM_32
-        [0] = { 40,      24/*24*/,  1,          1 },
-        [1] = { 0 } /* Invalid */
+        [0] = { 32,      32/*32*/,  0,          1 },
+        [1] = { 40,      24/*24*/,  1,          1 },
+        [2] = { 0 } /* Invalid */
 #else
         /* T0SZ minimum and SL0 maximum from ARM DDI 0487H.a Table D5-6 */
         /*      PA size, t0sz(min), root-order, sl0(max) */
-- 
2.17.1




 


Rackspace

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