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

Re: [PATCH v3 04/18] xen/arm: flushtlb: Reduce scope of barrier for the TLB range flush


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 13 Dec 2022 12:15:25 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.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=mZv2BOBeiwQj8AIfhOvYiRfO9zZ/zOcsoW76c9Hyg4E=; b=CTx0AEjgH7SCpGumSD0MQpWAGx6pXt2Kd+bDLQPWG/lGSebVCScjRyHrxSPNx5fe3nNqHmt2ti3qL2/dURw7IiQ+60vB4Qv2PSnFlLWEmXfRI9nkEXmui0GDfca0+gM24iAAL0HTbmGM+TI+mQVCkJPH+eVNLCQc5YBP8n5zH64iAdEVpM4jN65KPOjAEJzQMbtBPrMsAcVuLzzYXM+Cb8EeMOzg7WC3ZGK39K0wvgv9q/llAveswhiTP6IwXbtEmUS0HE125uBaCQCwBJ9BqDz12CTtZoq6UZmMasIQb7HL6GOsd6mbvN475KNaxArZiGJ1U9zGZ1m41W4vgeraCw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FMbEKkWHN+1J4LE5ypmUGXch5YMYCfjQf2XpYTxN+GM22FLya69G4oqPr1EAbDNwC62Nrel1s0tIAfYlYZluhz6rjNPWdxKgLXkIzf08FydiakDbS/q7XtCYbc3eItuDndLUXwA0k0FtnSlqp3omdIk3afFcJPgowSRM8cCutQIxUVIyfvHk3RIWK0JQTxDvtKzlUrzvrSJF9hW5hjZw8OJ9LtwD0Z/kuFUBAKgs2o74YRUDqf/ZK+HBKH5yDySW28EKGO/TNQRhUQO41xHR50fhAERyORLZzWNlVhickqpjdC7DifBlozSfJQLd2opJLZkiHNNSIIaSQCnA5g1TGA==
  • Cc: <Luca.Fancellu@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 13 Dec 2022 11:15:46 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Julien,

On 12/12/2022 10:55, Julien Grall wrote:
> 
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> At the moment, flush_xen_tlb_range_va{,_local}() are using system
> wide memory barrier. This is quite expensive and unnecessary.
> 
> For the local version, a non-shareable barrier is sufficient.
> For the SMP version, a inner-shareable barrier is sufficient.
s/a/an/

> 
> Furthermore, the initial barrier only need to a store barrier.
s/need/needs/

> 
> For the full explanation of the sequence see asm/arm{32,64}/flushtlb.h.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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