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

[XEN v1 1/4] xen/arm: arm32: Move pt_enforce_wxn() so that it can be bundled with other MMU functionality


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Date: Mon, 11 Sep 2023 14:59:39 +0100
  • 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=RmqowAx24OOOJpsd+S0aluwjNaHIyEOrBq4/krDyslU=; b=lcHWLIcN7iLuDKg9TRU2YdtboHNwv9GI7VsNHyk/5H3JKQQ0bBQ0Vfvyv43pct6oBzJDT8cdhQvwdgn9ZUkPckI4VtHQ0S9SZY2t2DajAYYh6pgztuLO2tlmfIYeSeaNHP/rcXRS37OnD5kduTv7HRIggOM8tN+pbAs6+25kcJi/iw3A5g1/5yOZoa/w3V7vrqKDeuwOwEXD4O1/lh66iuR0kXN+7kqhsIOXv2hGRMdZtU0NumXwx5TuPKGCpoz08CnDrX7v/SGz786N+Rz4yoXol+PBgWC0Y6HcELQO+vnDcD/Z9OJMtt5elPa01czG9yE1lxSVir7euQ6my73CWA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQATQon54Un8o115gnezS4f6Mh0PUs8zKbUxSeBVL1cHQjIHXyT9wKYbV6JpErgrEMux6N0z97OKgpeyWl1eUX51BLlqiuJeE9jOu+y6h9NMwdPrBm5ndZ7PUIsaXPcZc9bPa7oI3T/5FkkfHaKhSDVKlPMMdmKqw+9+9sNszVnUlFDJeg/pMaxS8k+ZKt7KmWQ33QfeuDfJe61x2xOHUOxoDtrCbhmqs0n68Ywh1uIXoL9rZUGpOyPkEQGHFXvuoY3amsmHn5l0oIUrqB+hqo3/w7YoB5XVtp6y07W9t6YGEt3RrNhUck3zFJ/uWnbAkeaN9AlNdVi09DN+tFTXyw==
  • Cc: <sstabellini@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, <wei.chen@xxxxxxx>, <penny.zheng@xxxxxxx>, <henry.wang@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
  • Delivery-date: Mon, 11 Sep 2023 14:00:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

pt_enforce_wxn() is moved up (as the previous instruction ie mov_w has
no effect on this). This way it is grouped with other MMU related
functions so that they can be moved together in the subsequent patch.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
This is based on my comment on
"[PATCH v6 08/13] xen/arm: Fold mmu_init_secondary_cpu() to head.S".
This patch can be ignored if the comment is addressed.

 xen/arch/arm/arm32/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
index c7b2efb8f0..057c44a5a2 100644
--- a/xen/arch/arm/arm32/head.S
+++ b/xen/arch/arm/arm32/head.S
@@ -268,12 +268,12 @@ secondary_switched:
         dsb
         isb
         flush_xen_tlb_local r0
+        pt_enforce_wxn r0
 
 #ifdef CONFIG_EARLY_PRINTK
         /* Use a virtual address to access the UART. */
         mov_w r11, EARLY_UART_VIRTUAL_ADDRESS
 #endif
-        pt_enforce_wxn r0
         PRINT("- Ready -\r\n")
         /* Jump to C world */
         mov_w r2, start_secondary
-- 
2.25.1




 


Rackspace

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