Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2278777rdb; Tue, 3 Oct 2023 16:40:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHImobDmoWa8JqljDzAzk6i8k7LP848d1JTS35J9GlV85YFztS5n7/wX/0+JNkup3FgPlTq X-Received: by 2002:a17:903:41c9:b0:1c5:f1fd:5da with SMTP id u9-20020a17090341c900b001c5f1fd05damr1124994ple.2.1696376448653; Tue, 03 Oct 2023 16:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696376448; cv=none; d=google.com; s=arc-20160816; b=CCKed75Cqc88LXDtUo2/6TO4S9Puf0efHu+Q4VLGzGJ/nyjRACes+HNhWHLq/TI5FB 6IDGrAF30YFTH0AJJ2bXtFFGNXr8vcm9gzWUcX7J94/Fe5H5+JKFmL+ynwJEKacTtVvo TDdP+c/I6ENkfeKJQI0Udc/zEaf6W2KqdO2Iv3W5i0simmW8kZ2WbVxeVxm8PuUE3sbj XxPy3QhR/Cg8aJVhNd81BiSYjnF7UyNCZa+bTkGRlifZWwlw8TSDT/qgmbaZwGXRTJG5 uCeJyYwhAICwrPl37kcu/Od/iI9NDV16vCvOTW++8fLITu6qwuGkkkW7t3oUoRcf29/R cUjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bmO5pFavK4wOcon/sDd15Ws2jqSVTxN561D6YV6OXgg=; fh=F0P+IYjhRasoWHpYozKiqqaRPW3ZG3G9TY/FSNrwmwo=; b=r+K9+0DXJkClvTNwWo5w+/pmy2nm6zfQ4qLQnO65/2P4vNpeFOAkQUV36q5E2Z3gwU iRS1fVj5Sn1ny8XwKSPEK7XbJnFAFr5iWeIK+Qxsh79eqHVbzDLbZifadVxjKWcOIRfJ jSArERqu3ciQXU4GBtsHgpb7W3hCD29ioO3vuHV1dhsaY6jvQABzM9QLLO6buQuAWFxl P0mUfLPKWtCK+ca/drzIbEdvhywg8FoWgYYWc/p/931xbRZElfW5tGQRN1qNMkzDApvj 9TmNbZmCZ7i86nJu+4wWWKqYPkjBsxnWqWtToQTGwhv19MCb9x/o/tdnqqVAzUjmrH1r adwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vxZ1ZTPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n6-20020a170902d2c600b001b9e2ce5723si2590616plc.495.2023.10.03.16.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 16:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=vxZ1ZTPT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C137D81BB4EC; Tue, 3 Oct 2023 16:39:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235111AbjJCXjr (ORCPT + 99 others); Tue, 3 Oct 2023 19:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237506AbjJCXjp (ORCPT ); Tue, 3 Oct 2023 19:39:45 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F78B0 for ; Tue, 3 Oct 2023 16:39:42 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-405524e6768so14971925e9.2 for ; Tue, 03 Oct 2023 16:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696376380; x=1696981180; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bmO5pFavK4wOcon/sDd15Ws2jqSVTxN561D6YV6OXgg=; b=vxZ1ZTPTOOxb5/1qxhAJb2c2IfhyYzzjuEXDD9ujXo0jsaCJxOTI84fSQ29XA3FoRz sFMShgnFGi54mN92ZvGJ8cqb1ff31wejT/7cuflv8l5h6ut6Q9ILGrP9atX1vQS9xLQT o3G6+lxIjGp7y6oJViOOw4C2UMxhxsujgQv+4mkRNhJvDh7kRXSZj2alBsOI5B2gG6eO bRcsRvCLwU38HN6Z6uUhLfuL5nWNYKMV3SICUYn0mAvO+IfPafI2KQRecZOUDCohgbfQ O8D4g1EC9nATGSZ8AH0C8qKZrFFgM/g3qxsO8srg0fFcgNpz+X6422nG3W1vwQ9Ki9bq G1dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696376380; x=1696981180; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bmO5pFavK4wOcon/sDd15Ws2jqSVTxN561D6YV6OXgg=; b=MtA5LMSVNwd/qU6Lml0RH98vvlv62SmVOUCBqfQCS5svRNOwcu+9OJQQiYFd9+91UB t/KnE5SVntJLgyYli8fxeIM/lNzSRzX+JPEmfINRcTzzWqkezotRUcfODPDjQItdV1fo +6i1WROenQ2Qrn+SeCVzyphzLKYpkVC6rfu3AmR72BhRiPhn+87h7f6W65D6T3BOSeiC T9e/Fgm8XpTjsKzu2+rpdHLZa6nrUaHEcZzR6lB8QIrXhqpI57MKQm1AUPvj1FCBacLF zl/9dk7sT1xeQlM8ELzbzqHIFcEzHs/yglVReRVjkD0KfQIG+LqwkgDPd/NqfBTWKY5I o2MA== X-Gm-Message-State: AOJu0YyIW5cUyVk1lDBYcXjN6VJNk/Lz3yr5zTp6sejfB66c1+jjvupO VU9zd457B4WXppJpM0Q9IvppSnspkw5/Egz5k340zQ== X-Received: by 2002:adf:f491:0:b0:317:e5ec:8767 with SMTP id l17-20020adff491000000b00317e5ec8767mr638253wro.21.1696376380430; Tue, 03 Oct 2023 16:39:40 -0700 (PDT) MIME-Version: 1.0 References: <9434ef94-15e8-889c-0c31-3e875060a2f7@redhat.com> In-Reply-To: From: Lokesh Gidra Date: Wed, 4 Oct 2023 00:39:28 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] userfaultfd: UFFDIO_REMAP uABI To: Suren Baghdasaryan Cc: Peter Xu , David Hildenbrand , Jann Horn , akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, hughd@google.com, mhocko@suse.com, axelrasmussen@google.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 16:39:52 -0700 (PDT) On Tue, Oct 3, 2023 at 11:26=E2=80=AFPM Suren Baghdasaryan wrote: > > On Tue, Oct 3, 2023 at 2:21=E2=80=AFPM Peter Xu wrote= : > > > > On Tue, Oct 03, 2023 at 11:08:07PM +0200, David Hildenbrand wrote: > > > Sorry I have to ask: has this ever been discussed on the list? I don'= t see > > > any pointers. If not, then probably the number of people that know ab= out the > > > history can be counted with my two hands and that shouldn't be the ba= sis for > > > making decisions. > > > > For example: > > > > https://lore.kernel.org/all/1425575884-2574-21-git-send-email-aarcange@= redhat.com/ > > There was another submission in 2019: > https://lore.kernel.org/all/cover.1547251023.git.blake.caldwell@colorado.= edu/ > > Though both times it did not generate much discussion. I don't have a > strong preference though MOVE sounds more generic to me TBH (it > specifies the operation rather than REMAP which hints on how that > operation is carried out). But again, I'm fine either way. That's a good point. IMHO, if in future we want to have the fallback implemented, then MOVE would be a more appropriate name than REMAP. > As for UFFDIO_MOVE_ZERO_COPY_ONLY vs UFFDIO_MOVE_MODE_ALLOW_COPY, I > find it weird that the default (the most efficient/desired) mode of > operation needs a flag. I would prefer to have no flag initially and > add UFFDIO_MOVE_MODE_ALLOW_COPY or whatever name is more appropriate > when/if we ever need it. Makes sense? Agreed! > > > > > -- > > Peter Xu > > > > -- > > To unsubscribe from this group and stop receiving emails from it, send = an email to kernel-team+unsubscribe@android.com. > >