From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EF47325726 for ; Tue, 4 Aug 2026 22:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.216.53 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785882045; cv=pass; b=HWhbmPXYJQMPYj9oHIPIOZk0nVbIzlz5po8PKD32H+5eZcL8Y4hLFQPlRC4ttPlJ+Zm4kphj7dOPD3DR1PudGbLRW+Np79FNO/C1XwIFCo2dtK/ZswsNJMh2VfQ75a1V1adqM9jmFmMTtHHguquPBS7KUReakrj7aCzfekceC8E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785882045; c=relaxed/simple; bh=p7KpLXDbYWu/mxWpOCbWD2NL3j0JpP9nFMeNwakGxKM=; h=From:In-Reply-To:References:MIME-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=rnMalbasbkR+WJCwmtAZ+g34wEs0lB6hrWG2lvVnJCvW5GvWf1Fk9TLm0dCFu6pMPX0ifWMtZGm5Vr8+kySygzHnL2LefyLxdxUbW1B7OsaNmPf/ECjOdJFHI38uj1aCFCpdczFGqLTnKeXwri/lhj1LtSIDHseuf30qKPlybro= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=T0w7KDnZ; arc=pass smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="T0w7KDnZ" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-38e041ea211so379656a91.0 for ; Tue, 04 Aug 2026 15:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785882044; cv=none; d=google.com; s=arc-20260327; b=JGZB7JCSxL0/DlZRvMDZS3jI39TkZEAXWc8FUzTS/dlQ2XQ8V1f3KXqB39ab/I24Th U344N8ScBQiLcvD5ABLmo/g1hseBlAIqWUDOZXd/AVs10OlWO1Gr8N2SzrSzCs1j/OjF HJ1mDPEL+fpLyT97D4k9yAM/akulwwvOGTUt9MFHNB0ip8Lvru9nvA1h3Re803Zfte8b IZBy5e5zUDMwrn6t5APvLnuiNci6K4aT5/csVFAIPI5psyzHBFPcf2denb8Yos2NnHM+ s1qle+a99O9QV0Vgf89TK61AVxT1pZxwdBpbrWeavAD6iI9z5UprFI8kt0wklt0J/0hw QXFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:dkim-signature; bh=voJFtdOcDQ3cvv3g0Px6B4YkGP5JAhQ6QCPfp6/emQc=; fh=apTNP2Qm9dOubjMsEyjMRgYx4NAOYqj/N/F71dlvR4E=; b=NyoLwRm4vU6pgnnald3NEBdj3/WZlOAY5NNiaAovEc1RHoFEC2OerphOSftFvN1Jha sChoxG+SZER1SpdVVxTABp8xM1Fn/b3ScYyTbdJPFj1peYcYXYQ9hAZeM2ADsrwGAh8b faad1ea0Hu7FmT99YxoiatvR1zFlfy3mHYMWEkqvaWCRxgAyNvC5uB+QesQgTNphp1bE bcSna3GSS/l/Qaqpvhpgs/UDjDtx2Q+qYXu15BZDUqrnXLTRKIvL5ooG67tPeFTQsele LePzIXtsBIPHWZKtztx2UJd4oe6ly4wmMc6mpV8I+GGQgulUoqslmLmL9ewRo089bdWm DG/w==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1785882044; x=1786486844; darn=vger.kernel.org; h=content-type:cc:to:subject:message-id:date:mime-version:references :in-reply-to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=voJFtdOcDQ3cvv3g0Px6B4YkGP5JAhQ6QCPfp6/emQc=; b=T0w7KDnZr3jDS7HeDOIQ5foupHOVXSXTAbw+qAcmdFnD7uhWOR01G5pZ2TwfG02OR3 GoCokpW/JmEvbbp+dh5ZQCJH4MXtA0H2Vv3j9sltRAxZQFk5qayZKtUVUqO+eBv1P5Pb Ya3sTRX+5ZrDXdtx3Z9jyWNq0DNk/bjVz1LaghtuPH+1dQanY6ZCDSVLl4wsviU2oeEe KN3Td1pPk/Zw9ArFGFbgbYPFB1Mikp1LQN/U3qoVsnz8x3/rXJOp62ZcMOLbAb7Hn6// q6lNvxPchY4EdvWRcTtON+8IRphlZHj43TZ7bADEKrF4RqlddHJxwclXT4FNGrogCWud n4vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785882044; x=1786486844; h=content-type:cc:to:subject:message-id:date:mime-version:references :in-reply-to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=voJFtdOcDQ3cvv3g0Px6B4YkGP5JAhQ6QCPfp6/emQc=; b=aq0hY9jyQDrHfhcIQgsifPe7wN6Lc4bh8DaXCMBNSR0j9ipqZ4uPeUoKURgd2ayJ0G bbCYIzmWdM5Nk1/QQlqiE6B0oaqR7k0Ed/r37Hdy2FX5+/w5S9DZCCKREhEZ2P4R50iV O5DIeih+AU7GjVUP33+oD43DmWXcgZ+yShoeiCYTDbeZgQF57oOx54+PbYsZSWx3xPsV u14qpqHOlYhpLVqG1EdcmrwgRNKjHkoR5ZBTMTXwX14ubiO1n7NocIDFm47YVYFDqgXw uFQw+S71DsKnLuXIwwd9cTW2/t4aI3riJBtNbYFn6fld8p4Lt/rxP/k0IrgkTF72drkd aLpA== X-Forwarded-Encrypted: i=1; AHgh+RryLLngdU4+K2EVKbkbq8cKiRMIHAJ/ExVIyjL4xBOdLXRg74Cs0vcnA7YLjHVVS67c/VeE0jSGG01XrlE=@vger.kernel.org X-Gm-Message-State: AOJu0YwsY6OrZXEXuXN9C7txDC04EoX48IzVT8Ns/+hiQPvuZ80rmlXA VFgG1LsUGrpzPsiVDS71d7cG2nuUUlyHiiXXBlEFGRoMR1LJYEvD4wcHtJIfbCzlEHLQ+Tqup+R XaeSQnXMutBRRcUbbgaVwNaytR69/nlSrYOG3t3jd X-Gm-Gg: AR+sD10TlbNAHijUFWZMXzvHZ/tDnWC4GmwGCL+D2GYT2Gx90vVK2JzkVsSP3Fmnqwn HxvZlBALILuZ5G4UlBAGx6DHuXTYsh9QfghvgqgAxgBSMvaQ+DjvIhdJzSQdawFCDnN+0/YaZa+ ANct0erNYukje+GRf1ipnjkumwNCQfo+/f12XxF6otTA2QhiF135iZ3e8iRKeWJrfuEOvMre/5h a1xeMxHKFS1Rty8iNpHPGo689sdWwC36omjVCoCIG/BMclxC+VctztQi7Mo9Lxi339pBdXztveN OOfmTQEAAdxhEm3fJ/10CQWv7zv66CiVr0QnKwDr01HFjzVGe7Yal3cGw3Vk7swnTPfIVYUfijg oWdKVbr+7ISpZSIpOVQalhhZ53iol+LnJVN8qzcZpbIPp X-Received: by 2002:a17:90b:270e:b0:366:3517:1aa2 with SMTP id 98e67ed59e1d1-3903bb0cf61mr2065807a91.0.1785882042841; Tue, 04 Aug 2026 15:20:42 -0700 (PDT) Received: from 176938342045 named unknown by gmailapi.google.com with HTTPREST; Tue, 4 Aug 2026 15:20:41 -0700 Received: from 176938342045 named unknown by gmailapi.google.com with HTTPREST; Tue, 4 Aug 2026 15:20:41 -0700 From: Ackerley Tng In-Reply-To: References: <4460e252-b6de-4df3-bea8-0368a9d0f4ff@kernel.org> <60552bee-3326-4917-b00f-5fb7ba3b8adb@kernel.org> <99037993-ee13-4160-8c87-b6642faea554@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Tue, 4 Aug 2026 15:20:41 -0700 X-Gm-Features: AUfX_mzkFKRHTDQOiQvLQ1e0yQheZQmYXCL22A9YUJawwpQUjT54D9_OoZJNsuw Message-ID: Subject: Re: [PATCH v9 14/41] mm: swap: Introduce lru_add_drain_progressive() To: Suzuki K Poulose , Sean Christopherson Cc: "David Hildenbrand (Arm)" , aik@amd.com, andrew.jones@linux.dev, binbin.wu@linux.intel.com, brauner@kernel.org, chao.p.peng@linux.intel.com, jmattson@google.com, jthoughton@google.com, michael.roth@amd.com, oupton@kernel.org, pankaj.gupta@amd.com, qperret@google.com, rick.p.edgecombe@intel.com, rientjes@google.com, shivankg@amd.com, steven.price@arm.com, tabba@google.com, willy@infradead.org, wyihan@google.com, yan.y.zhao@intel.com, forkloop@google.com, pratyush@kernel.org, aneesh.kumar@kernel.org, liam@infradead.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet , Shuah Khan , Shuah Khan , Vishal Annapurve , Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Youngjun Park , Qi Zheng , Shakeel Butt , Kiryl Shutsemau , Baoquan He , Jason Gunthorpe , John Hubbard , Peter Xu , Vlastimil Babka , "hughd@google.com" , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Suzuki K Poulose writes: > On 04/08/2026 22:35, Sean Christopherson wrote: >> On Tue, Aug 04, 2026, Ackerley Tng wrote: >>> "David Hildenbrand (Arm)" writes: >>>> Andrew wants to give it some more time in -next, so I'm expecting it to >>>> land for 7.3. >>>> >>>>> 7.2 or 7.3, then I would strongly prefer to base v10 on linux-next (where >>>>> the fix will presumably land soonish), and target 7.4 for in-place >>>>> conversion. Then v10 can be applied against an early 7.3-rcN and we don't >>>>> need to juggle branches (assuming Andrew is ok taking the proposed patch >>>>> through the KVM tree). >>>> >>>> Agreed. We'd also have to get the actual preparation patch into 7.3. I can >>>> send it out and coordinate with Andrew. >>>> >>> >>> Thank you! >>> >>> When we were discussing this earlier at guest_memfd biweekly, before >>> deciding to refactor out a function like lru_cache_drain_for_folio(), we >>> did say that the likelihood of actually draining in practice is low, >>> especially on a machine with heavy load making allocations all the time. >>> >>> I think the threads with Xiaoyao have resolved, I can put v10 out >>> tomorrow. Would it be okay to go with the following from v8, and then >>> clean up later when lru_cache_drain_for_folio() is available? >> >> No. >> >>> I'm hoping not to push this back by a full cycle to 7.4, >> >> Sorry, but we've missed 7.3, irrespective of the lru_cache_drain_for_folio() fix. >> Even if v10 is perfect, applying tomorrow means it will get ~3 business days in >> linux-next before I send pull requests to Paolo. That's just not enough soak >> time for land a 40+ patch series, even if half of those patches are selftests. >> >>> and also hold back other series dependent on this one. >> >> Eh, I don't think there will be meaningful impact in practice. If v10 is good >> to go, I'll get it applied on 7.3-r1, and will also get an early pull request >> over to Paolo (probably around 7.3-rc4). I.e. folks can start posting against >> the landed series shortly after rc1, and I'll have a set-in-stone base on which >> to apply more stuff around rc4/rc5. > > For the record, Arm CCA KVM support depends on this series and that > being a big series (around 40+ patches), it is an inconvenience for the > Maintainers to make an effort to review the series. That said, we are > happy with the way this is progressing and next cycle merge for this > series would be perfect for us. > I saw the exchange on v16 of the ARM CCA series. I'm going to make every effort for the conversions series to get into 7.3-rc1!! Sean, for the two attachments you left, did you intend 0001 to be the first patch in the conversions series, or separately handled? and 0002 will replace these 2 patches (in-place, in terms of order), right? + "KVM: guest_memfd: Introduce function to check GFN private/shared status" + "KVM: guest_memfd: Wire up core private/shared attribute interfaces" > >> >> And if v10 has issues, then *not* rushing it into 7.3 will likely be the fastest >> path forward. > > Absolutely !Like any work, if it is not ready to merge, it is not. > > Cheers > Suzuki