Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp571260rwb; Thu, 11 Aug 2022 06:36:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ue1kpDsSZXKdBJYV/Aos9NB19+rHRbUPFRCmy+KVX8aUiZ2RrdYcERTWJbRhvB1aWtvVR X-Received: by 2002:a05:6a00:21c5:b0:52b:fc9c:295b with SMTP id t5-20020a056a0021c500b0052bfc9c295bmr32196291pfj.56.1660224970681; Thu, 11 Aug 2022 06:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660224970; cv=none; d=google.com; s=arc-20160816; b=g0AsL4GAbfasogYaVjcTroV56q/8dinU759C2Ebxjj24BQzR/aiThf3QsQ4CStsZn3 ScUU+eXljXP311qd2/Hu7eUCH5u8qxgJ96VTYzBjtlyrtmu3+IH9pLsrE1MW7pk3elTT 3QyAdbcH3hTk5oEMpsFObHP9LAjNQu1SzolJw3dfaGXLtq4xX6Exqo4qcN7ETgrcDwC2 uFRts3kpXnQqaFIeQLtQ3ZMeLpwPoBKx5aXlggxjg+QYJ6iZN4wWgTCAUj45OBH1MUD+ seQ06Usw1esCo0DWI9Ehbh0mzqDHXMMaiXg/4T0gy17fNm94EzOAjQrDZSwUCa+TyhbB gXHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3MRcVxkQskaoR9Gu8vTdfe3SAmvath2jQNxcSxuvW1Y=; b=fg1tmdADTPxK3Iy4g/KDZB0Vz3fTeFg8GfTI8eyDMJqTF/pkm6aMjTAi6wa8sZh+J7 7BQJXf7KZaiLcuW33rZI9iSpZUfIPCqcB09NzFIBAaDKMTODWPopOIhsiiASVNElzM23 AlbQTssOW/rF+yWS2Ry8hgeFZB3ZVjSyB/RsklZEHygRCbDPSNCnWfE0LZXGubSGOa1A U/eEKaMwqAldvuZSaJebgihmSNHn/r5nC9fb+sNW9UF7eMNa/blnz7bEOgGkLyqPzyQ6 l4QT2q1yKdI0LdCnIMKsD0wPAi/1OEttm0sUMJAzhBYcUPqacFxxeUaMoHDrhf7Izh7r vzmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NHGbxl9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a63e209000000b0040d7e818e88si14569471pgh.69.2022.08.11.06.35.48; Thu, 11 Aug 2022 06:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NHGbxl9p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234383AbiHKM2H (ORCPT + 99 others); Thu, 11 Aug 2022 08:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234375AbiHKM2E (ORCPT ); Thu, 11 Aug 2022 08:28:04 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A039F8E998 for ; Thu, 11 Aug 2022 05:28:02 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id o22so22714921edc.10 for ; Thu, 11 Aug 2022 05:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=3MRcVxkQskaoR9Gu8vTdfe3SAmvath2jQNxcSxuvW1Y=; b=NHGbxl9pUrdbk/qb8xkMm4zoxhQhX6Rs444HQVekSH5HLue8co3CqoPnGbERLio2dM LGx24QotE4kcbcEEhmgdmUCglkMRj9LUgkSP/KpiNA700mP6h94Dn1d/wFOg8IXrTV5Q 7t8086tWE8qBuYhtW+ve33VVpMjT6RO9u3JV6fo+OXTJ5nEqqLqt5Xfar1N/31vDl+kb /Qc9CeYpCrRSPvgdT5jKrAYi+Bis7pm8rvEJBRuOqCqT9rTRlL5ZiL661wC2BrmdE5CH +f94perJ/2Z6mBI0Mqi+Tsy+mMxy6HBFjWyJQNFav6rilu1dhdspBsJwb60836MPgNiY wunw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=3MRcVxkQskaoR9Gu8vTdfe3SAmvath2jQNxcSxuvW1Y=; b=mfNJVeSaGWmBEnw4YbTtDYR6vgMD4cMNQiMVtS2rbzjiz/8T50GmYVM6P5EKN288NM qL1ohZ2S9wzj235ZE1s5BGHYXfhB3kxJNrSK1MpfcAARd6qYyyxmzUKLEBgXBlFLZ1oz A0BdeoF2P9KuiirNAPn2xFmx3P6GjO30i/+6sVNrH8kVttVYSoz3iv4V/Z9BH9Sgip1f 26XwQRc/1zA1IZn5J86adLaFYC8OGtBNdVWQaUUJEJK7JHrbIL9IpRZliMG0LisHAirn HprShMrJV7ex7lniRH7VpGNlox8EPJcZ4m5N/5EmHG8H5LyHGr52eWqOcpPdyZ40ieux e4gw== X-Gm-Message-State: ACgBeo2rCqfmWnb7D8rtCoVtv+Er1uekV/2LSs+c5OanfR6e3ICRZqcX MMbxbkWSM5JadRS+Cs+cK9wPCw== X-Received: by 2002:a05:6402:3583:b0:43d:6943:44a with SMTP id y3-20020a056402358300b0043d6943044amr30188049edc.409.1660220881001; Thu, 11 Aug 2022 05:28:01 -0700 (PDT) Received: from google.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id v20-20020a170906381400b007307d099ed7sm3440458ejc.121.2022.08.11.05.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 05:27:59 -0700 (PDT) Date: Thu, 11 Aug 2022 12:27:56 +0000 From: Quentin Perret To: Sean Christopherson Cc: David Hildenbrand , Chao Peng , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, qemu-devel@nongnu.org, linux-kselftest@vger.kernel.org, Paolo Bonzini , Jonathan Corbet , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Hugh Dickins , Jeff Layton , "J . Bruce Fields" , Andrew Morton , Shuah Khan , Mike Rapoport , Steven Price , "Maciej S . Szmigiero" , Vlastimil Babka , Vishal Annapurve , Yu Zhang , "Kirill A . Shutemov" , luto@kernel.org, jun.nakajima@intel.com, dave.hansen@intel.com, ak@linux.intel.com, aarcange@redhat.com, ddutile@redhat.com, dhildenb@redhat.com, Michael Roth , mhocko@suse.com, Muchun Song , Will Deacon , Fuad Tabba Subject: Re: [PATCH v7 03/14] mm: Introduce memfile_notifier Message-ID: References: <20220706082016.2603916-1-chao.p.peng@linux.intel.com> <20220706082016.2603916-4-chao.p.peng@linux.intel.com> <13394075-fca0-6f2b-92a2-f1291fcec9a3@redhat.com> <20220810092232.GC862421@chaop.bj.intel.com> <00f1aa03-bc82-ffce-569b-e2d5c459992c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +CC Fuad On Wednesday 10 Aug 2022 at 14:38:43 (+0000), Sean Christopherson wrote: > > I understand Sean's suggestion about abstracting, but if the new name > > makes it harder to grasp and there isn't really an alternative to memfd > > in sight, I'm not so sure I enjoy the tried abstraction here. > > ARM's pKVM implementation is potentially (hopefully) going to switch to this API > (as a consumer) sooner than later. If they anticipate being able to use memfd, > then there's unlikely to be a second backing type any time soon. > > Quentin, Will? Yep, Fuad is currently trying to port the pKVM mm stuff on top of this series to see how well it fits, so stay tuned. I think there is still some room for discussion around page conversions (private->shared etc), and we'll need a clearer idea of what the code might look like to have a constructive discussion, but so far it does seem like using a memfd (the new private one or perhaps just memfd_secret, to be discussed) + memfd notifiers is a promising option.