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

[PATCH v14 11/15] xen/arm64: Keep the early UART message in the identity mapping


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykola Kvach <Mykola_Kvach@xxxxxxxx>
  • Date: Tue, 17 Nov 2026 01:05:17 +0000
  • Accept-language: en-US, uk-UA
  • 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=6issg6c2Z+0ej4JLJ8/LJm4uPcUDbSe10ylZfAniywE=; b=HaSmG/Gyu6BVADJdR+D3W3PQO9AYt4qT5abxrfvWAc2dkOFk0jO7fQyibgzkgOznH8tBGglU3voSvzczRY2+LY3IncK7MnkJmM+JMcZOQkQB/hubI4jL3DSxPEt1gWiGz50sMnrCtbW0nF2YKuRegnx7YGILUATyrbsfZLd2An4LmoXPC+QPr70OjBbJqLFDXa28V0rUnKaVrF2/n9QVIL+QLvWPmVtdo88ZQrcGaanBvl7V239eTu5rsaXzsnpCRQ6ErcdalkhoBsVaAi9ZNp+yhsqxYZUa094+h+lBgMhwLRIHDobrKxEqDOanXNq7dBdK/BPBcqEeNTEXgat9Mw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YK31/vmQK4vo9DQcC1LIJwqRxKcumy6urv5ePd8D7F5k8g7kTxYDUe5jLDjKOyQT3yZ18jzZtCYKiP1kgeWCeM/ah368+6bREThM8L5VJi29kvmyIyk9/tIJzK7kjxalkY+yA+ot1Bn9N6YxOxdtONq6aoe3Vi+hU7Tu5uzmJpeoW8YMw7qwPfBOj54e2KOhYkev3zULppumjQUAVk+y3goLKbgcj+v7o5C1VbhznVIHcH92EcMfSItW4U1M9//HhD+oShmUOJpQ+OeIWPdrOb907x7K0HUTX6NkQtzICpl6md//cLV3VZsY7jNhT94ADsMBWgn8ci28Jc/Hzgmpzg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=epam.com header.i="@epam.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Mykola Kvach <Mykola_Kvach@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: Tue, 17 Nov 2026 01:05:22 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHddi+1iA9+sB2+tkuE2J5rtZwhLA==
  • Thread-topic: [PATCH v14 11/15] xen/arm64: Keep the early UART message in the identity mapping

init_uart() uses PRINT(), which places the UART message in .rodata.str.
This works during boot, before cache coloring relocates Xen.

The upcoming SYSTEM_SUSPEND resume path will also call init_uart() with
the MMU disabled. With cache coloring, Xen is no longer physically
contiguous, so the PC-relative address used by PRINT() may not point to
the string's physical location.

Use PRINT_ID() to keep the message in .rodata.idmap, alongside the code
that needs it before enabling the MMU.

Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
---
Changes in v14:
- New patch.
---
 xen/arch/arm/arm64/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S
index 7d1e205353..f523427d48 100644
--- a/xen/arch/arm/arm64/head.S
+++ b/xen/arch/arm/arm64/head.S
@@ -447,7 +447,7 @@ FUNC_LOCAL(init_uart)
 #ifdef CONFIG_EARLY_UART_INIT
         early_uart_init x23, 0
 #endif
-        PRINT("- UART enabled -\r\n")
+        PRINT_ID("- UART enabled -\r\n")
         ret
 END(init_uart)
 
-- 
2.53.0

 


Rackspace

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