From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71BE629BDBF for ; Tue, 12 May 2026 01:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778550406; cv=none; b=h1wi0DK3BmLvQLdvH1zETiYFjfzjy/B0KsJocKfe437jbtPUU5GJZ/RAHXJPp1EspEeYApQ1VZl3L2SJkK99j7Pq9MR1dGtNtR12qKfTeM15Hf2Cjj/0hv7DUIYUbbwf96ER4kHfDs3A/PnqOiIHQtGPH3beQoX7fEv00W0mWzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778550406; c=relaxed/simple; bh=c4id9ihy8ztfucDYDowLlLACVM7d/Ob9aNef4+6RDP8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Sd5bmHiN6slXEh7xi8gKbz4vK1kaZlHgZViELV54mFboGXbdURFf/gtJIWwT/XiWyomFL/Q2oiogpQdpRC565E0T6zXPiYTwT5HJ/We6nMcNdZ86xZNrEaHYcCbq6DQKTGCLXCjr4TB5ImzZSu2camTNjPEFMvG6yr22ciQTtfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=i1FXONaW; arc=none smtp.client-ip=115.124.30.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="i1FXONaW" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1778550401; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=lCZrJmWcgeI9f/ODZSMAog/jo8dLcJSiPNdbUjCMAEg=; b=i1FXONaWN3EfAoNZ0j9MDDErlKsXecZU5dCMxHfHoAST/sa+fl2TDlQQa7I7Y9iO8TOtKemnijEW8ffmfJ0FPoaEBTbSjo6lRgsLLmU9rcZ/1me6wMb6syKRb+CJUPrtncoM9zmzJ6ArRfcJGGYuU5SqCaTpeZXUQtjDKs1QbFI= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=ying.huang@linux.alibaba.com;NM=1;PH=DS;RN=44;SR=0;TI=SMTPD_---0X2oYqmQ_1778550348; Received: from DESKTOP-5N7EMDA(mailfrom:ying.huang@linux.alibaba.com fp:SMTPD_---0X2oYqmQ_1778550348 cluster:ay36) by smtp.aliyun-inc.com; Tue, 12 May 2026 09:46:37 +0800 From: "Huang, Ying" To: "David Hildenbrand (Arm)" Cc: Shivank Garg , akpm@linux-foundation.org, kinseyho@google.com, weixugc@google.com, ljs@kernel.org, Liam.Howlett@oracle.com, vbabka@kernel.org, willy@infradead.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, ziy@nvidia.com, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, gourry@gourry.net, apopple@nvidia.com, dave@stgolabs.net, Jonathan.Cameron@huawei.com, rkodsara@amd.com, vkoul@kernel.org, bharata@amd.com, sj@kernel.org, rientjes@google.com, xuezhengchu@huawei.com, yiannis@zptcorp.com, dave.hansen@intel.com, hannes@cmpxchg.org, jhubbard@nvidia.com, peterx@redhat.com, riel@surriel.com, shakeel.butt@linux.dev, stalexan@redhat.com, tj@kernel.org, nifan.cxl@gmail.com, jic23@kernel.org, aneesh.kumar@kernel.org, nathan.lynch@amd.com, Frank.li@nxp.com, djbw@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/7] Accelerate page migration with batch copying and hardware offload In-Reply-To: <088ded16-09ca-4c40-ab23-62108c342588@kernel.org> (David Hildenbrand's message of "Mon, 11 May 2026 17:19:18 +0200") References: <20260428155043.39251-2-shivankg@amd.com> <87a4ub35ja.fsf@DESKTOP-5N7EMDA> <088ded16-09ca-4c40-ab23-62108c342588@kernel.org> Date: Tue, 12 May 2026 09:45:48 +0800 Message-ID: <87ecjhwgc3.fsf@DESKTOP-5N7EMDA> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ascii "David Hildenbrand (Arm)" writes: >>> --------------- >>> >>> 1. Should the batch path run without a registered migrator? Patches 1-4 >>> are self-contained and use folios_mc_copy() (CPU). I have several >>> options like making batch path always-on for eligible folios, or >>> giving admin an option to flip the static branch, or keep the gate. >>> I'm leaning toward always-on. >>> >>> 2. Carrying already_copied via folio->migrate_info vs changing the >>> migrate_folio() callback signature (Huang, Ying). I went with the >>> field for now to avoid touching every fs callback before the design >>> settles. Happy to revisit. >> >> Personally, I still prefer to change migrate_folio() callbacks for >> better readability. > > Can that be added as a cleanup on top? It sounds good to me. --- Best Regards, Huang, Ying