Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp614431rwb; Thu, 11 Aug 2022 07:13:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7XC7DuUMGv1V7Si5MH1sGGS1V8lsCLEG02R/Hb2PF4AjCyGaMhVRL7hWfUyQG0p0I5oCf4 X-Received: by 2002:a63:dd4b:0:b0:41d:e855:7137 with SMTP id g11-20020a63dd4b000000b0041de8557137mr7658030pgj.595.1660227182573; Thu, 11 Aug 2022 07:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660227182; cv=none; d=google.com; s=arc-20160816; b=FnhWje3smK10a+EOpBp954+6wVmhWmYr5SNCJnXEDbV/HcVIsU8X+CXyZUW5xqOBze 7Cw9tHF617PXIJ3xbRB9WDPOMuWY/pwBGFgx9p5uyR1jyA2pzjbDk2513oLHgZd0z9r1 DbncSVddswoZKl5lkaXHxxw/kLUVClf+CFjoc41yk5TngrjiSpfovUlHdIr6hR0aVKPg ah3wj0vRXoAMQhThGrT0+6gi3Dl6xP+5BYJgjIn0kwcA/It2/jpkh8MSlNCiD9GtZ7df 7TSwlnx6uDo84Kwf7H/Hw0TN864Nw0kaYlop5lZScjXveRVEwur1cWJQVk1PLLLjPAIV 2oEA== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=a5FivZwqPIG3OSE6uKmUKq5fs/EQk+LJuYHspiIyjT8=; b=otst2zAwJV6d6zxu6j50DL4u5DU+t9DSnkC9EvK/9gDAl1bEv+SE0Tjt2rh2gc3Jfi bkAbkVKEoTo1gHmi+MBk8RVaBZQl/y9t0rT7RerwIQKpCpu26aXP0cRj2Radrx2BR/jF 1DnFThxMlwKG+bykcgX8LNvbUs9XM/FgLPFUb68ti6P9Uj7J4Tk8YtXkmjZv5tWgIziU WrotZoBRf1xOSslzHjRIkv9D1BjGbfcXN7w8BAiOSqBC8tOaqmFzvVKffOAMlcF3FQQd pRvDaGNXdswDfLQdwarhMxpV8ASdS30RRbOb8M1K62OS4/XNldbLITD7cyHzxyB1YefH RTOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d4c4cnSc; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r134-20020a632b8c000000b0041dcd148307si6276440pgr.655.2022.08.11.07.12.46; Thu, 11 Aug 2022 07:13:02 -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=@intel.com header.s=Intel header.b=d4c4cnSc; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbiHKNoN (ORCPT + 99 others); Thu, 11 Aug 2022 09:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234939AbiHKNoL (ORCPT ); Thu, 11 Aug 2022 09:44:11 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A369661D5B; Thu, 11 Aug 2022 06:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660225450; x=1691761450; h=date:from:to:cc:subject:message-id:reply-to:references: mime-version:in-reply-to; bh=6G1vjfFDPRBJq3hrus4RUCAj1Ik6SbGGx7LGPLT4CKc=; b=d4c4cnSceeeu7pOr1M6yPJGfJ3fVRak7yxgC47zNN1IUy5Tdxab8FQpQ cnBQ7gPpd/hvDbuy5gyByOuMb4lwo8Im4oHMUbzDm0qlCTHn/ijQFZOvj Mq3lq+LDZMrEPRr48zUj5FDkcV8nz5k9ctL5KIPNwWcpCtzi1hkz1qA6q pWtjiYJKJbCH2SMClUXcoA9fT++42hoDozM5J4GtXDH6azUGtBvupYHp5 MElZW9qgLRhScPlvOPYRA8D2igtaz9uCPWI1Q3gwwFAcoWWRDjFf8DJPw 0BgRP0lvXbrnQokLfItXaKv0DQOp2FbifwnxcSyaisiM8C2qnOGVb1Sxb A==; X-IronPort-AV: E=McAfee;i="6400,9594,10435"; a="271731755" X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="271731755" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2022 06:44:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,230,1654585200"; d="scan'208";a="665377410" Received: from chaop.bj.intel.com (HELO localhost) ([10.240.193.75]) by fmsmga008.fm.intel.com with ESMTP; 11 Aug 2022 06:43:59 -0700 Date: Thu, 11 Aug 2022 21:39:14 +0800 From: Chao Peng To: Quentin Perret Cc: Sean Christopherson , David Hildenbrand , 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: <20220811133914.GC916119@chaop.bj.intel.com> Reply-To: Chao Peng 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=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Aug 11, 2022 at 12:27:56PM +0000, Quentin Perret wrote: > +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. Good to hear that. >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, That's fine. Looking forward to your feedbacks. >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. If it still memfd (even memfd_secret), maybe we can use the name memfd_notifier? Chao