From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0753BE81812 for ; Tue, 26 Sep 2023 02:20:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233476AbjIZCUa (ORCPT ); Mon, 25 Sep 2023 22:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233434AbjIZCU3 (ORCPT ); Mon, 25 Sep 2023 22:20:29 -0400 Received: from out-200.mta1.migadu.com (out-200.mta1.migadu.com [95.215.58.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67DEEBF for ; Mon, 25 Sep 2023 19:20:21 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1695694819; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i1b8hVoQId4csgamvTB2WShQmgG37CnT1dtlKwQaPO4=; b=xILITPFQAPSLd4ahspvL7fGpqJq7VOivtaJQ2kuFK6eFCyXtjuajupOfO7evf51EFxZmrQ wrhvm8eSmVLXpPYTDwMuLZl8pnESdJjURxxxGt7eOgtP7rTrpK0sI4vNMSUK2YsxzMkZyh enw4L+1faWVgHJs7EWWQmRdTyebvODc= Mime-Version: 1.0 Subject: Re: [PATCH v6 8/8] hugetlb: batch TLB flushes when restoring vmemmap X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230925234837.86786-9-mike.kravetz@oracle.com> Date: Tue, 26 Sep 2023 10:20:09 +0800 Cc: Linux-MM , LKML , Muchun Song , Joao Martins , Oscar Salvador , David Hildenbrand , Miaohe Lin , David Rientjes , Anshuman Khandual , Naoya Horiguchi , Barry Song <21cnbao@gmail.com>, Michal Hocko , Matthew Wilcox , Xiongchun Duan , Andrew Morton Content-Transfer-Encoding: 7bit Message-Id: References: <20230925234837.86786-1-mike.kravetz@oracle.com> <20230925234837.86786-9-mike.kravetz@oracle.com> To: Mike Kravetz X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 26, 2023, at 07:48, Mike Kravetz wrote: > > Update the internal hugetlb restore vmemmap code path such that TLB > flushing can be batched. Use the existing mechanism of passing the > VMEMMAP_REMAP_NO_TLB_FLUSH flag to indicate flushing should not be > performed for individual pages. The routine hugetlb_vmemmap_restore_folios > is the only user of this new mechanism, and it will perform a global > flush after all vmemmap is restored. > > Signed-off-by: Joao Martins > Signed-off-by: Mike Kravetz Reviewed-by: Muchun Song Thanks.