Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp585534rdb; Thu, 19 Oct 2023 12:54:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEQYI6T3LKYa3VzpEc+ZOw7NCBbtUDYGock1D3uQfprSbwyG0LKMQUieH8BvDHuagS5ym8 X-Received: by 2002:a05:6a20:3942:b0:159:b4ba:a5bf with SMTP id r2-20020a056a20394200b00159b4baa5bfmr3084555pzg.13.1697745243986; Thu, 19 Oct 2023 12:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697745243; cv=none; d=google.com; s=arc-20160816; b=LCEtf2AN7PmKUcaqgVAFqvB6zR070ReX83PFltd5RP3znrHiM9dyrr60J85dDniRe5 TYmpwVL4/vftydmgYEi3RbcRf4YuRagdDsfRcjXRaXpuPrFY5dBw5a6Nbj1BGwPlKQ3d EO0W3RUkECysM1SP3mc8PavjwAtd0u2amtLdKMvBocQTfk+EHxwZbp3DZEd5veJBN1NY JAjb9/MqBpdTYDG1kT64f4rgxy1dwZF7XbYxloUWlx/IW5VV5k7dqWchMT+Y/7DPGfY+ HQjh77CW9Ng+/RPEgeWuCYsHw+029h52wcJP3HycpMrXYuolmkHcQrVvGO4rPq2w1IRy h7Rw== 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=xsesIdim+wPTdU/RUNRWHqvYIZjYuIVW1UPJdK5PEjw=; fh=iiu5FdpUSgnzzd9m08fY+7QmpnpRxSEb+iQIEhNGdWg=; b=kyMAIj/MDxCSaBWDv04udwO5O8omKbgooWc86qIQIyiVVVCZjlONq19MbF1igr+KeM JpkjiI12V3s0HUr3PKFtRhFnn553gjuzDeBN53O1xqbKIhVlMw20ULUCXTpt2pkgzscN mz/8poWhFho5vPhBuP0/s2/rbRCYyZo6/Jd39gfjbYkca6VMSasGJWhDWOND8mcT+qe7 nljVvMKeMkLyHa6jgKDv24tmw9xNcG1dt09iflOYZCUYrHa8IQdcCU5hjKR47UkzniUC wDPBO8a/PxFuHzf34vXN7zL/qDFCt+/m1aSrxwPqias0CBqrZOfCCiHCyfPAfRjWmx8z XzNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZWruexAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d5-20020a655ac5000000b00565f01b9403si254990pgt.883.2023.10.19.12.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:54:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZWruexAB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DC61D8024C5B; Thu, 19 Oct 2023 12:54:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346466AbjJSTx4 (ORCPT + 99 others); Thu, 19 Oct 2023 15:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346551AbjJSTxy (ORCPT ); Thu, 19 Oct 2023 15:53:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F3EFA for ; Thu, 19 Oct 2023 12:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697745185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xsesIdim+wPTdU/RUNRWHqvYIZjYuIVW1UPJdK5PEjw=; b=ZWruexABPn1xnioa8tXDoYsxb+yBu8lLypHsouNe2F81i7AL0+1nNB5dIUTvZlou/rxl+Q pSdmg9+FQcpsd3UXD7fOWwnxWNHcWvwuL9yJgPKWgdfFMmh3x6hzNLgeKsYM5SJfYkYcfs G2tFFWKXHV0kExhHLT7foOAEhiuwob0= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581-mocXLl-6PZGcnYvinsIuaQ-1; Thu, 19 Oct 2023 15:53:04 -0400 X-MC-Unique: mocXLl-6PZGcnYvinsIuaQ-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-77891ef5fc9so489685a.1 for ; Thu, 19 Oct 2023 12:53:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697745183; x=1698349983; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xsesIdim+wPTdU/RUNRWHqvYIZjYuIVW1UPJdK5PEjw=; b=kaU1hbtQhKbnjqzPRThbTHdH+hZaOZ4LXBcHMplZK9FyZm2HiLeX1KwLw2rw7dt4Xf BjizcHC/FIHZ8/C098pyJIuWSm3ZstvZghsisEkDFE835R17qNClBXB1VQ4CZQn0JBg9 iujQHdb7Fugl8wPk3RbOiRXms6XwFPNLWct0m0QjA7sVeySZBBGgRj0Ju8oN10Khrhgf 2Tx9EdKxynA7PkTBilLyvxd4llovEofk6Sj14ckZFtXbtEauPNI49QBiUmcM2b+J4fFb +Pb3jl49YibLxLEmc0QIzZ9tAzF9xgHtYDElxWhtx0Rh0eJk3pfzzl/yVr8Q2Q7zDnya Q4Lg== X-Gm-Message-State: AOJu0Yy8jooji9uDYZ6UHuOXvjyL7knnMHxXKRvdYMbZbHIpQSATqxX0 KYgDxZWeY9xnIXBpJQgXS9JnOT+qmKg5J8QcTaDk8AEy6SBLgYnSrioMJM0L2A/nQ4g/MaWd6Z8 ++kb6VG/ybO+aAoca1493v/41 X-Received: by 2002:a05:620a:1a87:b0:778:96e8:90af with SMTP id bl7-20020a05620a1a8700b0077896e890afmr3341461qkb.5.1697745183641; Thu, 19 Oct 2023 12:53:03 -0700 (PDT) X-Received: by 2002:a05:620a:1a87:b0:778:96e8:90af with SMTP id bl7-20020a05620a1a8700b0077896e890afmr3341429qkb.5.1697745183351; Thu, 19 Oct 2023 12:53:03 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id 2-20020a05620a070200b0077413b342e9sm53812qkc.128.2023.10.19.12.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:53:03 -0700 (PDT) Date: Thu, 19 Oct 2023 15:53:01 -0400 From: Peter Xu To: David Hildenbrand Cc: Lokesh Gidra , Suren Baghdasaryan , 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, jannh@google.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 Subject: Re: [PATCH v3 2/3] userfaultfd: UFFDIO_MOVE uABI Message-ID: References: <478697aa-f55c-375a-6888-3abb343c6d9d@redhat.com> <205abf01-9699-ff1c-3e4e-621913ada64e@redhat.com> <12588295-2616-eb11-43d2-96a3c62bd181@redhat.com> <8d187891-f131-4912-82d8-13112125b210@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 12:54:02 -0700 (PDT) On Thu, Oct 19, 2023 at 05:41:01PM +0200, David Hildenbrand wrote: > That's not my main point. It can easily become a maintenance burden without > any real use cases yet that we are willing to support. That's why I requested a few times that we can discuss the complexity of cross-mm support already here, and I'm all ears if I missed something on the "maintenance burden" part.. I started by listing what I think might be different, and we can easily speedup single-mm with things like "if (ctx->mm != mm)" checks with e.g. memcg, just like what this patch already did with pgtable depositions. We keep saying "maintenance burden" but we refuse to discuss what is that.. I'll leave that to Suren and Lokesh to decide. For me the worst case is one more flag which might be confusing, which is not the end of the world.. Suren, you may need to work more thoroughly to remove cross-mm implications if so, just like when renaming REMAP to MOVE. Thanks, -- Peter Xu