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

RE: [PATCH 7/9] xen/arm64: head: Rework PRINT() to work when the string is not withing +/- 1MB


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Mon, 26 Jun 2023 14:44:13 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=c6opY+aZQujdikmovOWyStccBto0lwrAnsqxf0G6S40=; b=Q3KKdm3xWLIIXju26Dussb+VI4AR7vrxDI6wJVLPbJLyyrOntsCtvBA8xKUSGWyIJKYIxgKZ1HQlHRAnfKw72HJcJYCJEzVRuKjVc7L/4sL54Z11YWIE5esWTaFMekWgUTvxHlcf7VmvlgYyHgNZg8L/tocLFv/tvd/uXNIkqgrhk6QpaBCOymUBAkYeddJ4MJXQgPZQBbzrbMPRxQCKhCD+kZaqkptrz3uMpmGTzRbSiHh6ZcCzo4nqPbNIzj5I9J+LwPSV+4IBwCIRkGKDrQ2desrDHIcQE6u+a4MgjhdyQRmoWbXILflblX0x8Cw32X18hi/3oNbT14TALOWdhw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YeAyZyfmpekO8W5RPZ5SAvyRYoQch5k+DohO0gGo+MPh/DemgMG+XtpBlEGE7oQ6tOZYvz91C5VSsoKe718piHumss5HsYpzXlmx1kG4iZMZHu3QW5l8BtVac0wFNacw+e2k/8DBYHsqDZPwQdCPdzsJ4OehoZiH9WnPqB3msT94eXajimP0i4zuIioTCN+ivC70Z2aEoBKmHuvnZGGNoZXfIaSxWYo2DybtrtBxL7ZCsOs3bTGfECK+22fakK3xxdjpkdTelrc8ATBqFOKkt58Rf2JBTOWw2rd0cdwU+KQbYb87BRRoT+x6iXq/RaX5bVnVXt+RaDHC06NwN7LPwA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Luca Fancellu <Luca.Fancellu@xxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 26 Jun 2023 14:45:05 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZp6aOU3BIgupHiUmzMkZr6l2qFK+dKdeQ
  • Thread-topic: [PATCH 7/9] xen/arm64: head: Rework PRINT() to work when the string is not withing +/- 1MB

Hi Julien,

> -----Original Message-----
> Subject: [PATCH 7/9] xen/arm64: head: Rework PRINT() to work when the
> string is not withing +/- 1MB
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> The instruction ADR is able to load an address of a symbol that is
> within the range +/- 1 MB of the instruction.
> 
> While today Xen is quite small (~1MB), it could grow up to 2MB in the
> current setup. So there is no guarantee that the instruction can
> load the string address (stored in rodata).
> 
> So replace the instruction ADR with the pseudo-instruction ADR_L
> which is able to handle symbol within the range +/- 4GB.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry



 


Rackspace

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