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

RE: [PATCH 4/7] xen/arm: page: Consolidate write_pte() and clarify the documentation


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Tue, 20 Jun 2023 03:07:01 +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=xHQGWmgQkcGLOBwc/CasTNLYO5cP02ymYlqWyo/t2P4=; b=kRFAbfiOx7ncQdtBrUwalbhZKHM7yvMR5Wa8WByn1sJpdV/CzzfNKKWH2QoCZmB+FxynOSYktRGoB9SyQrmflHHqIZ0hgGtc0WD1m4Gq1bUC94zSNy8WHFwgqI67zMcaQzyPMP+RHNCqvScwf0DJjpzEf3v4vYSbPxKAgdunFE3wss9QC87b+BY1wRbQIQHEWR1Ba2nSZxySjSk8mwPwaGFxYstTeDSt+Hf8iaPZjyp+y1mlknkivcnEGAN5e7TCfckJ/y5DE+v1CnGURka3GiZUsKJg8VJtRQBDT3j4evYmSKop9PXrKqXKpb4JvyxBwRAKHsy77EbVKsti+2KGwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bkl2UmyVMSa/aQrGf5s0EqG1NAEJBjgoE+4mhiiBkUMb7AFQTGwLvN0ONAxUR9n2UxiEJvPwjSpcyntx0+IS1EhXmUvxs0XUwQfd/AKGkikPSYIQph6W95h7A9pTECjphR+Db2RuTnK9awvkfRhqyNG6NhfdBF2vnOyoItm2gcyHoRBx8EfSxtaRFuZrGIp9weQL7XBvRasH4R1DdR554lY8P3h2ImTzVzwGTQ5/hXk3NjYb9OY4OvwERD3//MhOWgnLAZx2SZsXfbjeNdPqu1AG4SDu9KdQYsQNDcnW/JeP9zILESplpLFhsZ/y1s8uxCWKmYurVX0TVzY/CaJufw==
  • 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: Tue, 20 Jun 2023 03:07:15 +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: AQHZos+4baq/guSYd0SnZjeCa2WkwK+S1pFw
  • Thread-topic: [PATCH 4/7] xen/arm: page: Consolidate write_pte() and clarify the documentation

Hi Julien,

> -----Original Message-----
> Subject: [PATCH 4/7] xen/arm: page: Consolidate write_pte() and clarify the
> documentation
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> The implementation of write_pte() is pretty much the same on arm32
> and arm64. So it would be good to consolidate it as this would help
> to clarify the requirements when using the helper.
> 
> Take the opportunity to switch from assembly to call macros. Note there
> is a difference on arm32 because the option was not specified. But this
> meant 'sy' (system wide).
> 
> Futhermore, the requirements for the ISB is incomplete. Per the Arm Arm,
> (Armv7 DDI406C.d A3.8.3 and Armv8 DDI 0487J.a B2.3.12), DSB will only
> affect explicit accesses. So an ISB is necessary after DSB to ensure
> the completion. Having an ISB after each update to the page-tables is
> probably too much, so let the caller add the instruction when it is
> convenient.
> 
> Lastly, the barrier in write_pte() may be too restrictive but I haven't
> yet find the proper section(s) in the Arm Arm.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

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

I've also tested this patch on top of today's staging by our internal CI, and
this patch looks good, so:

Tested-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®.