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

Re: [PATCH v3 03/18] xen/arm32: flushtlb: Reduce scope of barrier for local TLB flush


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Tue, 13 Dec 2022 11:48:57 +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=HuNpgwYzPNZ6sJRzy8OLXSaURUuZ7f6G0pEmrqOaVZ0=; b=mMpI6ozm95K6Vg23ZwbJi3zDCnjHHGhkhSDCH9r0D4+8G7CIHddPJzNklsKv7jFCT8rQpcawzISI0i+xmSXX47n8EeqoWam23Z1+Ksmt3xHrLSZFcT/JPmC9YRIAKQn4UJWyMt7hOD/vT+NLBdy37i3nsbTM+o6YkULCJ3VQ7GfUeprIDb/Fnzlboor236EBp5EboNh98Wp3k88oBBR+bbxAut4jn8GGF6ZR+5Cf4nP6sAlRVqTVNJoSponuqUjDAa2L6E3tIVerRtksx2+QXzezDNhw63wXwr3idAi7iuPHxD1pa6txQpHUUDaRWsL89sz18qzgdYLw1RcHSnNf/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZgeA//zoXxUqp6yQFj5hO9gGQvp6bZ618CTLyUNfa67vhLcikl2cFQ+bXcEH5RDQ56x83IMIDwCk1goLMtLvqbt1BezTEZh+mRVGEMlt/rcF5tJJAd7HkLJFAqX2pyN3a6GpUqFFYKmCiD/7vVBCSocPeIih8ePT68ibia81tLK9lNJJE7MnYzE6F/9RouJEaFrxZzeJzfyFnK0hfNBPzVdi9QPP+i4V2IfPPMgVP+mXvFPX9PS0O3LdaHxZCGV2pUgdQEcNprZRpsQXOuh4RmpSgd49pAKibTsjJsQJSNrl/wzrMX4qxr651RtDsHanyQHcyK0H+mgINIB2hB51ZA==
  • 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 10:49:15 +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>
> 
> Per G5-9224 in ARM DDI 0487I.a:
> 
> "A DSB NSH is sufficient to ensure completion of TLB maintenance
>  instructions that apply to a single PE. A DSB ISH is sufficient to
>  ensure completion of TLB maintenance instructions that apply to PEs
>  in the same Inner Shareable domain.
> "
> 
> This is quoting the Armv8 specification because I couldn't find an
> explicit statement in the Armv7 specification. Instead, I could find
> bits in various places that confirm the same implementation.
> 
> Furthermore, Linux has been using 'nsh' since 2013 (62cbbc42e001
> "ARM: tlb: reduce scope of barrier domains for TLB invalidation").
> 
> This means barrier after local TLB flushes could be reduced to
> non-shareable.
> 
> 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®.