Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3998594imj; Tue, 19 Feb 2019 13:20:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IaNJjQ+Dao4q5alPbpl7ga0iYH/Z4S/AsyMLP8CBH3cuu/l92VMT51Cq8W11YNQr2AMY7sT X-Received: by 2002:a17:902:758f:: with SMTP id j15mr5893278pll.66.1550611204895; Tue, 19 Feb 2019 13:20:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550611204; cv=none; d=google.com; s=arc-20160816; b=0K6b5BvzSL05VN5nRElWDReNwtmR5rdqxncrqel2qMbmoqYHzBEdhIyO8CG0eNB+Ro AgbubhTTzr9lvqnPbrNyFwDoo327zSUt0GlxCJ7FwLXCpgHe9cVKI1apVhztuN9fsCo0 AxsylwKgWplCZEHIp+ZXyaiylEPc2pgDZU3fL3xpi7Sct573D89DZRvDSe9pgGkB2LxE E2hQTcbAR9CF1BhSnfGnW0hadOoZinVcFb8xmNL88UduXyHhWAdUa2YlsimOyHJl5tko VqMPDBoX0EDsWdKGTVOO1nAYbpOlkYZW3aZ29bANZdMj+m7VHasjLByGDcavWDhE9eYE kGVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ivTKQNMtP2X3qCK3twrbZPzFwkoeeZNha+qut1LdGoU=; b=p3fMhKZZJatab6jqDhWg2GsNsqlQo0pgofyp4z6oqyJPT0+kCqClgO8LvkQc4eHOfQ onsHwX33664BgrEXiE2Y+eO0H6T2jV4yyoJ+fDlisNCaIOwilQPVgi3a8pOo2/4HK3MI 9r5OgktA0sdNmyONoUf09fO04NAvM2afFdsbk1NK5tuxUgMp1C8UJh4u4i1xa+CAQLGU tdEnG8FhuDmXA4jdOAtSATvXBY+aBWyRPGe97Tm7yyRaZFmzxWFMhl043/a07pXQdCeY SxH+ia/RU4ecB1w2PTu4nibehr6fvz3Mm5lO4lzRfvM6lj2bEwGPaAXpTXVnSoI6kVmT Ot6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=mw3KCraA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si17059754pfb.214.2019.02.19.13.19.48; Tue, 19 Feb 2019 13:20:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=mw3KCraA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729130AbfBSVTV (ORCPT + 99 others); Tue, 19 Feb 2019 16:19:21 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45238 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727916AbfBSVTU (ORCPT ); Tue, 19 Feb 2019 16:19:20 -0500 Received: by mail-ot1-f68.google.com with SMTP id 32so36714421ota.12 for ; Tue, 19 Feb 2019 13:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ivTKQNMtP2X3qCK3twrbZPzFwkoeeZNha+qut1LdGoU=; b=mw3KCraAh6U31DL397Vc95iRYXQapjrxWfVJNHMKSffaMwJrRHlKsIkWehqf1oB1rB 6We2AazkMPhkraX7atDrshsNSGfNReBFNVXTQ9l61c0z/6PnNYd8K2VR4n7la7Upv2Ag jqnknScKG+/99v4FDg+RcEU0Xnc9flzu8A39Wcr/qCGXj6+m1cif5A/UvdD6nR4GoN8c l7y73quixJ1jqGTnxyOfRh65KvtD/vrgVinwbUwjkocUhTW2VpUD/Fbt5Qerk5kl+enS gWeky1JxEobjI6fci9qZcPPGtxRlAXPug2eETyzHVLoQXHuEwDq6hCe2Ju7Ek056pfIw jymA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ivTKQNMtP2X3qCK3twrbZPzFwkoeeZNha+qut1LdGoU=; b=OtkcnMGVHEcJD1m6gkbAVeQkPjxhNmq3qS47RtPVjCl0jC917H16m/Sdz+dPFMdMmr 6/LrJxJXANlW2o8vrmHi6CpEc54ht2jA9fGWJ2QYkG+EWF7xohxWDk+LAM1P9xg2BGAi c2IdMXU8iuYxMZMnkYsJOt+SkezsYnMKqdNKnMuIcEQvOs+sQf2/HfvLuQ4CXQByaXpu 6zTcaNHYOyeqgyBR/6SBFWyDYjU9fwonUNRSaWd6yOHBHkywnJcv9Kawk7FNc6dF0AXz 3v7dO/xbmZGOJA0qXi4fYBqb2UzRh3jzdnWIunTy4BXyqDCbr9WOBqstW6DtbymwWKzh m21g== X-Gm-Message-State: AHQUAuae5QZ/szcPzgFdTSxqoJjrFzd9xo95ZzfSabPZ/he9aGPUfjs5 /5ZsbaDNiD9SWLadhA3yc0si7aOPBORPKhuApkKwhw== X-Received: by 2002:a9d:7a87:: with SMTP id l7mr11513781otn.98.1550611159926; Tue, 19 Feb 2019 13:19:19 -0800 (PST) MIME-Version: 1.0 References: <20190219200430.11130-1-jglisse@redhat.com> <20190219203032.GC3959@redhat.com> <20190219205751.GD3959@redhat.com> In-Reply-To: <20190219205751.GD3959@redhat.com> From: Dan Williams Date: Tue, 19 Feb 2019 13:19:09 -0800 Message-ID: Subject: Re: [PATCH v5 0/9] mmu notifier provide context informations To: Jerome Glisse Cc: Linux MM , Andrew Morton , Linux Kernel Mailing List , =?UTF-8?Q?Christian_K=C3=B6nig?= , Joonas Lahtinen , Jani Nikula , Rodrigo Vivi , Jan Kara , Andrea Arcangeli , Peter Xu , Felix Kuehling , Jason Gunthorpe , Ross Zwisler , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Michal Hocko , Ralph Campbell , John Hubbard , KVM list , Maling list - DRI developers , linux-rdma , linux-fsdevel , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 12:58 PM Jerome Glisse wrote: > > On Tue, Feb 19, 2019 at 12:40:37PM -0800, Dan Williams wrote: > > On Tue, Feb 19, 2019 at 12:30 PM Jerome Glisse wro= te: > > > > > > On Tue, Feb 19, 2019 at 12:15:55PM -0800, Dan Williams wrote: > > > > On Tue, Feb 19, 2019 at 12:04 PM wrote: > > > > > > > > > > From: J=C3=A9r=C3=B4me Glisse > > > > > > > > > > Since last version [4] i added the extra bits needed for the chan= ge_pte > > > > > optimization (which is a KSM thing). Here i am not posting users = of > > > > > this, they will be posted to the appropriate sub-systems (KVM, GP= U, > > > > > RDMA, ...) once this serie get upstream. If you want to look at u= sers > > > > > of this see [5] [6]. If this gets in 5.1 then i will be submittin= g > > > > > those users for 5.2 (including KVM if KVM folks feel comfortable = with > > > > > it). > > > > > > > > The users look small and straightforward. Why not await acks and > > > > reviewed-by's for the users like a typical upstream submission and > > > > merge them together? Is all of the functionality of this > > > > infrastructure consumed by the proposed users? Last time I checked = it > > > > was only a subset. > > > > > > Yes pretty much all is use, the unuse case is SOFT_DIRTY and CLEAR > > > vs UNMAP. Both of which i intend to use. The RDMA folks already ack > > > the patches IIRC, so did radeon and amdgpu. I believe the i915 folks > > > were ok with it too. I do not want to merge things through Andrew > > > for all of this we discussed that in the past, merge mm bits through > > > Andrew in one release and bits that use things in the next release. > > > > Ok, I was trying to find the links to the acks on the mailing list, > > those references would address my concerns. I see no reason to rush > > SOFT_DIRTY and CLEAR ahead of the upstream user. > > I intend to post user for those in next couple weeks for 5.2 HMM bits. > So user for this (CLEAR/UNMAP/SOFTDIRTY) will definitly materialize in > time for 5.2. > > ACKS AMD/RADEON https://lkml.org/lkml/2019/2/1/395 > ACKS RDMA https://lkml.org/lkml/2018/12/6/1473 Nice, thanks! > For KVM Andrea Arcangeli seems to like the whole idea to restore the > change_pte optimization but i have not got ACK from Radim or Paolo, > however given the small performance improvement figure i get with it > i do not see while they would not ACK. Sure, but no need to push ahead without that confirmation, right? At least for the piece that KVM cares about, maybe that's already covered in the infrastructure RDMA and RADEON are using?