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

Re: [PATCH v4 08/14] xen/arm32: head: Introduce an helper to flush the TLBs


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Fri, 13 Jan 2023 11:46:51 +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=FzbfDr1VZnamU4LdrVFf8z88bEG70m4uommrJcHbGlw=; b=BwPtxvCFAChHM9V3va98qYla1TZoHzV75HQFSkTYmF7KMM74zUKtqWAvO5XrjNovs3GgCrPYEzBP9PHCalOAlRwMJV6s1nwsqX1CdNrkEFBBDoErVEeR4thVpgOKI1gSr3adXwipJH/1b+CPSGR8nFwvqzFpga+sWv2K4XUZ+Pn+R/U2XyyV0fepA8kRm9393KCcHWH18Mu8Ak8mvbkIzmRfqiRlGAST18zkDSxPYpDIzOiJZhW+O2bu8XGNdtwGihScrXB3g64t06Oa2DQZWsyNRHNI+pTHWCUblSUEra+k94aT4r4dK7UrXJgOIBww+WCJZYR/g58qF8cWgGicaw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OA00ajGrj3QoB53DYE/ipfMFJa2jdtFnwgd+QlFEwxxnUJ8Qq1t2S9Whyl8iG1FzFiMYol5XtvGlqbQd9ad4NkRLcKGaJb/qkL9pmAij4eTPZr2XWfZBAoCiRGsX3u34EUFmwAK0Gkt3F/oPsPFnBYLj/TCxVMS5v2ZcNVz07uvX049DhR7DqPlML2tBbHB4gq8nAnUL7Vp64xT4+KeWhVZorqsOaKm6RWzHiNhvTdjeYA8aV/kzhY8jwcAccOdjSvNr403c3fllvuNqLgSAxVv88o9U/vuXuR8y36Hrk5R8XS6fAe0bkjt5LmssJSSKlHP3KC12pFZC+o+mWGGPuQ==
  • Cc: <Luca.Fancellu@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 13 Jan 2023 10:47:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 13/01/2023 11:11, Julien Grall wrote:
> 
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> The sequence for flushing the TLBs is 4 instruction long and often
> requires an explanation how it works.
> 
> So create a helper and use it in the boot code (switch_ttbr() is left
> alone until we decide the semantic of the call).
> 
> Note that in secondary_switched, we were also flushing the instruction
> cache and branch predictor. Neither of them was necessary because:
>     * We are only supporting IVIPT cache on arm32, so the instruction
>       cache flush is only necessary when executable code is modified.
>       None of the boot code is doing that.
>     * The instruction cache is not invalidated and misprediction is not
>       a problem at boot.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
> 
> ----
>     Changes in v4:
>         - Expand the commit message to explain why switch_ttbr() is
>           not updated.
>         - Remove extra spaces in the comment
>         - Fix typo in the commit message

Thanks,
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®.