Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp164288ima; Thu, 31 Jan 2019 14:15:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN6YWcdJ71j/YZFNadyB051N2zRwcNk4qwSUBKtMkUQh49ZVa/ehGhtURijD0v1wO7CwDzvT X-Received: by 2002:a63:65c7:: with SMTP id z190mr33332906pgb.249.1548972957784; Thu, 31 Jan 2019 14:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548972957; cv=none; d=google.com; s=arc-20160816; b=vbiMWlXHW0cR2likzw2GeZbU4IulxagJMVGYnfbNBgyjG2oFC7otChpZxitBNQF34s s192kUX3y0umCkgYNdKFnh5SymVEodF8TDoTiCuDXcqWwu0qh4FZ33tkhMoToXmwMrQa msGk/BOZlB9NF2hBKm53WGHhKaPWYyUYULNigqVvuz7XvGJoiZ+ugGhtp44cBOU7126u 3Noh1Z2vZLbvn1Q5piLOca7VY5/5e1rmQdrXAI5EYB86bsKbpPz2re1LE6z5LS6C9PEP hvtafnc3iUKRL7frS55eNPhGDG43QFnHdiaoPlHcXEaK0Cqd/RGPDoWvaaM5MX57kN3W d0pg== 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=Q7O0jcgITA3XebH5XyJvXJXGReDcsuC8W+QDfX39/cU=; b=ZSjaKrCg93IXmg68Rfj2gPHCBeQhY+foYVyQrWF762WOXBZpeoYjUUozqvnWIoStry 5+WJ7/yUu28t4d3qKlTRd2Ld/gY6LY3pSgckC0iAnyTbjWDuKQrD/s1GB+rYefwX0c2x dvhEhpp40JAR65FDNrdF6iImguVB6FQsNfMOoWT/D6Xvn+n3fpdNaEYYg7Mb0UgRKRAQ cVxCJAjMxLP2jLQxG4ZT0JY+HLkUC3/ay8NbYuOr4V7HM1jR2pucdWxrLNJQzXPnBi15 rUGaE8K8JYpoCMyRCZKQGO3WnSCHGnTGvMRIzuYzL9qI/DpG+qBoLjltVxwW9L4HgoL1 +zLQ== 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 c64si5294642pfg.239.2019.01.31.14.15.00; Thu, 31 Jan 2019 14:15:57 -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 S1727907AbfAaUeF (ORCPT + 99 others); Thu, 31 Jan 2019 15:34:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52712 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726848AbfAaUeF (ORCPT ); Thu, 31 Jan 2019 15:34:05 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9B8B9432B8; Thu, 31 Jan 2019 20:34:04 +0000 (UTC) Received: from redhat.com (unknown [10.20.6.236]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 619A860BF7; Thu, 31 Jan 2019 20:34:01 +0000 (UTC) Date: Thu, 31 Jan 2019 15:33:59 -0500 From: Jerome Glisse To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christian =?iso-8859-1?Q?K=F6nig?= , Jan Kara , 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: <20190131203359.GA22145@redhat.com> References: <20190123222315.1122-1-jglisse@redhat.com> <20190131161006.GA16593@redhat.com> <20190131115535.7eeecf501615f8bad2f139eb@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190131115535.7eeecf501615f8bad2f139eb@linux-foundation.org> User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 31 Jan 2019 20:34:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 11:55:35AM -0800, Andrew Morton wrote: > On Thu, 31 Jan 2019 11:10:06 -0500 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. > > The various drm patches appear to be headed for collisions with drm > tree development so we'll need to figure out how to handle that and in > what order things happen. > > It's quite unclear from the v4 patchset's changelogs that this has > anything to do with KVM and "the change_pte() kvm optimization" hasn't > been described anywhere(?). > > So.. I expect the thing to do here is to get everything finished, get > the changelogs completed with this new information and do a resend. > > Can we omit the drm and rdma patches for now? Feed them in via the > subsystem maintainers when the dust has settled? Yes, i should have pointed out that you can ignore the driver patches i will resumit them through the appropriate tree once the mm bits are in. I just wanted to show case how i intended to use this. I will try not to forget next time to clearly tag things that are just there to show case and that will be merge latter through different tree. I will do a v5 with kvm bits once we have enough testing and confidence. So i guess this all will be delayed to 5.2 and 5.3 for driver bits. The kvm bits are outcomes of private emails and previous face to face discussion around mmu notifier and kvm. I believe the context information will turn to be useful to more users than the ones i am doing it for. Cheers, J?r?me