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

RE: [PATCH 5/7] xen/arm: pmap: Add missing ISB in arch_pmap_map()


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Tue, 20 Jun 2023 03:07:06 +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=F+0lwwmotLMtqrhLh/iZ91YY18lo1ZbQCuY5pwacwRw=; b=TZFS9S2lJvegDsCY7P94Hfkn0IcFjRs1tqCOI7Me40qrKqndQV13VvVLK0bWLMVGieGE76rNUHmgneHt4eKGLLZUs27c51AQtzYuAx1VmyppqrfHef1Cu45NpIXEBW/4W+i9hxpAnVedSlrwcZJttusTYs1EcAAkHuEpBcUqlzQbgkylx5GcFaU6Z83Nlztzmzne67ZJXPgFQfzlYOMjteRTUlyxIcMr+s+XCJxYubqCLicQ4bMnvBFIkdj4v0o2oFxPBLEFnPPbUniGw+AYaiUUurjBr+3+ua77v7GeOH4byoVcaI0QQG7JS6NxsDyd9EezfOpuY1AUFPetn1QB3g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i2u7RJWKpwanLMdJhlTsw1JETLq961x5pF0QrPk5HxOWQ06Yraubt5tAdzsatDFtOtJctlKmBqma7/rZmPDlNeYLClXZum0VzJAMSULNa9gCxbD38BDG6lk3WrB3TL8c6woKM1JD8EgPr96cDEY4XX+BtU9qQEBrTJlAmcBybRXLvRpnLPEkGRlQ9GVFy9M0CoFrHib7kUTnbWSVoCOHqcFfvNBrquxVtDS8Q3zkqYm3IR5tdNRBPw8bq5w9l8w2eTToXuiqVaDJTh2CBxhi4g3RoMHYK6V18Hu3At7YI3juxwaQ8IzEv6dDn1L3rV1+DgTYbLFkhTTOIS5eLSp68g==
  • 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:52 +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+1SFys8OlrDESZKk38tKur+K+S1zXw
  • Thread-topic: [PATCH 5/7] xen/arm: pmap: Add missing ISB in arch_pmap_map()

Hi Julien,

> -----Original Message-----
> Subject: [PATCH 5/7] xen/arm: pmap: Add missing ISB in arch_pmap_map()
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> Per the Arm Arm, (Armv7 DDI406C.d A3.8.3 and Armv8 DDI 0487J.a B2.3.12):
> 
> "The DMB and DSB memory barriers affect reads and writes to the memory
> system generated by load/store instructions and data or unified cache
> maintenance operations being executed by the processor. Instruction
> fetches or accesses caused by a hardware translation table access are
> not explicit accesses."
> 
> Note that second sentence is not part of the newer Armv8 spec. But the
> interpretation is not much different.
> 
> As the entry created by arch_pmap_map() will be used soon after
> pmap_map() returns, we want to ensure the DSB in write_pte() has
> completed. So add an ISB.
> 
> Fixes: 4f17357b52f6 ("xen/arm: add Persistent Map (PMAP) infrastructure")
> 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®.