[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v4 04/14] xen/arm: flushtlb: Reduce scope of barrier for the TLB range flush
- To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Henry Wang <Henry.Wang@xxxxxxx>
- Date: Fri, 13 Jan 2023 13:53:39 +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=PpFEWSanXFdEVYh+Sv0tOwepH2BkicRhfafa+WZtzbg=; b=mgwRqjt+QNOBOVXJIAkFEB6OBHQDwOut+lIAtlmPeex16GLfh4PhotuXM/tewm5VP2WVCwL2Nsao1J16tzXp3IwuKBLmFoqTblWPFYrxMjUTPc3cimsE215oyZCb3fQLRwZ3U8dT3eEgHZG0Zuv1nl3WFCMYnD4WqSobgHVRC6Saj8DIFAm3eAAmAKK+YH4kGgXwaIQJxvlmIBOf7VlbClGS0yt0P+jAYQm5zBOcKBZsWxTc6GflAlvE/zSA1AmYCMyrGyNmGdDSF9JbaTfGlP1DavWCtVRAJXg9rQp+cAssvcTHQCDU9KIufvrWdW3thQGlOztxOw94HCQCx95JVw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SyZwaEGf1tgUW9FdYNB0Iaq+J8WVCZsjZBjHKF0RIuPgkqZ2bBao1JNT8dhsp9KbTAmdM4PCruoVhwbTdAK00wcptm5jfQ+9fO6gdaC6DYCfETYsxKMALX8mQDEwtOrS3V1mMdMN+wE8hrfkAwGAbZBxrpp8e4jimg/J0oSDAPPsX2dllkPqBObefQ34hjQEFvGGCvyPSMBhaXzERUEgZRB0Iqq6hbDYjFBjXxzItvuJci8F8dTkDejSJTdqAQhQBS/xScKxfmLRSDhN6wU1Rq9itceE9//SxWgzdRpfaPphARJzozpBad5uxLo11z4mRx/luRO20rxlMtFkFuC5uw==
- 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>, Michal Orzel <michal.orzel@xxxxxxx>
- Delivery-date: Fri, 13 Jan 2023 13:53:58 +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: AQHZJzeBX/yRWyvkUk23hxgjDc8lvK6cV9vg
- Thread-topic: [PATCH v4 04/14] xen/arm: flushtlb: Reduce scope of barrier for the TLB range flush
Hi Julien,
> -----Original Message-----
> Subject: [PATCH v4 04/14] xen/arm: flushtlb: Reduce scope of barrier for the
> TLB range flush
>
> 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, an inner-shareable barrier is sufficient.
>
> Furthermore, the initial barrier only needs to a store barrier.
>
> 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>
Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>
Kind regards,
Henry
|