[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" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Sat, 14 Jan 2023 02:16:32 +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=usH70UPyi66+A0kDY5WODCtqwfRUynUMRZuCEGEjch0=; b=D/Qgq31TYgunEuwHXopbZ0voDrS0Tlh5BPGsAhIhhAv3mDjKhacGY+Gp/+eb5jrCmxOuMNrdAsBB7qi2Miwf4r1sLpPPXuukho5520NwkJKSFS3axliCKJZkIt4Ru+XlS/h/AM+/XEIn7GJRlcBAwZXh+lzFxK7KKj/T2RWqYpNLLFicDHk6z2AFSOWUwJv4nn4q6a3f2lvMo586Lp6CK9nW0CsnoxNvsIMEu+VNOTyc8e4xcrLDIB6UFJ7hWH8Li7k5GvZAGERiKjJDHhi53KNanVFey9qFkMsIwFrJarRR6DKMZqn2j5k1nBeV1XuuIBD+6M3a4C9wNg5i5ZyA2w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LfN3v8flniCq7AAE8XBa0VIiVmB9IkCiVcnbQVylGV7uHhcK50+o811z1Gm4lvdZeJt8asIw20S7GdAuJbW6WqamO/qS+r/lhBwfKsx33ns8OBdvoSRPzZkhqLuPd04gdbzd/Tt+OguHqJQ7k74J7G5YtkMmNLbw+9nSeAEdvkZEEZM2BCmHSfoHBHBw2yJGWccpaJfwjLIue+TboEGqgAoNTIhktvuyhZOGlNUR3Vlh0aXGS3ZzRHTaLXGO7zwYe3oQ+8ZxssoEl7FSrAPOOJBLYD8+0EJWnFVeu1kQylJ9JY1cjvLS+T84Ykaw7vDpupOxMQhtYFvD7VZltOPDRQ==
  • 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>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Sat, 14 Jan 2023 02:17:10 +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: AQHZJzeD+kLxmSVjqEKBUhQr2u05s66dC6eg
  • Thread-topic: [PATCH v4 08/14] xen/arm32: head: Introduce an helper to flush the TLBs

Hi Julien,

> -----Original Message-----
> Subject: [PATCH v4 08/14] xen/arm32: head: Introduce an helper to flush the
> TLBs
> 
> 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>

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

I've also tested this patch on FVP in arm32 execution mode, and
this patch is 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®.