Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3033427imj; Mon, 11 Feb 2019 12:39:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaq4aiAoYiy7uIfbsgr1p/Z0F9E8K6niCDFfl2XoY6A4bqPxmEZcoFxrn648WKAKAFeTziX X-Received: by 2002:a63:4b5e:: with SMTP id k30mr111844pgl.212.1549917559524; Mon, 11 Feb 2019 12:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917559; cv=none; d=google.com; s=arc-20160816; b=03uq1OQXB+2D3vPo9b1f945eEFFQNRbPkdLqbDZaz41O1PNW7OOqqYIWaEctp4Lc7d XIXQ5SCKSbyQaMphAqNkFWIAH+gXpvc0X+SzaRiN2C0dj5ZfV66v7zPmfoEqtiwZobhT VSSxZ22eV2Gywo0JF6ySbbFMt+2seOBPL7x8pywR5DGv3WU2HE7kqqhYalLOEF3UyBXn 4m5d9vd3V28qcD4zKhVXC5H5S7B3tc64BENDpm5eqiKVOiTFXtCZdwlJfJ57/gTLBjzP V1QyHX1KJTdD3qH398yNdUL9p0wPTCqA74mTTieJn7N1+TJ15cE/19WkOZ2yXI26UWli S+fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hllwwMJ/8SbmGBMFJM2JbYIpnIqObbh2LBiUQ6YduI8=; b=GrWMtMDWEvgSYxziPhNSVri4XR32ECuana7tWPIoJ8aJX8YPhsaJ0Y8jIskPgw8Dve D4K/X7puEXe95HRFPVUa2GzhRVNdsVvSqi3EEugvhJJ15Ezq+6rMLgV47N3gvOg6bcsH urN5emnirbLo2VlbLrHo7KF8hO0DrY96Xg1yTMB5c+LvjtKw4LNvAhKTMTE1eH+msM1Q SrFTphd77+dHFQoNXt8vv1RDsjeDVT+Cuiq9MIvUCLKWgnt1rUYz1SRv6UE5IVbdCUON 0HfU5nooXpmFjses+zwqJKuKWGD/Eaztg0yQMyfqdPWASg6itSlmY3b7EuDPGF2TNwE8 M/OA== ARC-Authentication-Results: i=1; mx.google.com; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o89si11257351pfk.223.2019.02.11.12.39.03; Mon, 11 Feb 2019 12:39:19 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733085AbfBKSyv (ORCPT + 99 others); Mon, 11 Feb 2019 13:54:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58554 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbfBKSyu (ORCPT ); Mon, 11 Feb 2019 13:54:50 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59639804E4; Mon, 11 Feb 2019 18:54:49 +0000 (UTC) Received: from redhat.com (ovpn-123-21.rdu2.redhat.com [10.10.123.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 389C55C21D; Mon, 11 Feb 2019 18:54:47 +0000 (UTC) Date: Mon, 11 Feb 2019 13:54:45 -0500 From: Jerome Glisse To: Jan Kara Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christian =?iso-8859-1?Q?K=F6nig?= , Felix Kuehling , Jason Gunthorpe , Matthew Wilcox , Ross Zwisler , Dan Williams , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Michal Hocko , Ralph Campbell , John Hubbard , kvm@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, linux-fsdevel@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH v4 0/9] mmu notifier provide context informations Message-ID: <20190211185445.GA3838@redhat.com> References: <20190123222315.1122-1-jglisse@redhat.com> <20190131161006.GA16593@redhat.com> <20190201210230.GA11643@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190201210230.GA11643@quack2.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 11 Feb 2019 18:54:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2019 at 10:02:30PM +0100, Jan Kara wrote: > On Thu 31-01-19 11:10:06, Jerome Glisse wrote: > > > > Andrew what is your plan for this ? I had a discussion with Peter Xu > > and Andrea about change_pte() and kvm. Today the change_pte() kvm > > optimization is effectively disabled because of invalidate_range > > calls. With a minimal couple lines patch on top of this patchset > > we can bring back the kvm change_pte optimization and we can also > > optimize some other cases like for instance when write protecting > > after fork (but i am not sure this is something qemu does often so > > it might not help for real kvm workload). > > > > I will be posting a the extra patch as an RFC, but in the meantime > > i wanted to know what was the status for this. > > > > Jan, Christian does your previous ACK still holds for this ? > > Yes, I still think the approach makes sense. Dan's concern about in tree > users is valid but it seems you have those just not merged yet, right? (Catching up on email) This version included some of the first users for this but i do not want to merge them through Andrew but through the individual driver project tree. Also in the meantime i found a use for this with kvm and i expect few others users of mmu notifier will leverage this extra informations. Cheers, J?r?me