Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1158125

Re: [PATCH 01/36] mmu_notifier: add event information to address invalidation v7

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From John Hubbard <jhubbard@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH 01/36] mmu_notifier: add event information to address invalidation v7
Date Thu, 04 Jun 2015 01:10:02 +0200
Message-ID <pxpXk-7jM-7@gated-at.bofh.it> (permalink)
References <psEtX-7Li-7@gated-at.bofh.it> <psEtX-7Li-5@gated-at.bofh.it> <pvFWx-7Ru-1@gated-at.bofh.it> <pwDfZ-2ex-39@gated-at.bofh.it> <pwH9U-85T-11@gated-at.bofh.it> <pxjoR-64y-13@gated-at.bofh.it>
X-Original-To Jerome Glisse <j.glisse@gmail.com>
X-PGP-Universal processed; by hqnvupgp08.nvidia.com on Wed, 03 Jun 2015 15:58:18 -0700
User-Agent Alpine 2.03 (LNX 1266 2009-07-14)
X-Nvconfidentiality public
MIME-Version 1.0
X-Originating-IP [172.16.180.125]
X-Clientproxiedby HQMAIL105.nvidia.com (172.20.187.12) To DRHQMAIL105.nvidia.com (10.27.9.14)
Content-Type multipart/mixed; boundary="279739828-1836793317-1433372523=:980"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 60
Organization linux.* mail to news gateway
X-Original-Cc <akpm@linux-foundation.org>, <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, Linus Torvalds <torvalds@linux-foundation.org>, <joro@8bytes.org>, Mel Gorman <mgorman@suse.de>, "H. Peter Anvin" <hpa@zytor.com>, Peter Zijlstra <peterz@infradead.org>, Andrea Arcangeli <aarcange@redhat.com>, Johannes Weiner <jweiner@redhat.com>, Larry Woodman <lwoodman@redhat.com>, Rik van Riel <riel@redhat.com>, Dave Airlie <airlied@redhat.com>, Brendan Conoboy <blc@redhat.com>, Joe Donohue <jdonohue@redhat.com>, Duncan Poole <dpoole@nvidia.com>, Sherry Cheung <SCheung@nvidia.com>, Subhash Gutti <sgutti@nvidia.com>, Mark Hairgrove <mhairgrove@nvidia.com>, Lucien Dunning <ldunning@nvidia.com>, "Cameron Buschardt" <cabuschardt@nvidia.com>, Arvind Gopalakrishnan <arvindg@nvidia.com>, Haggai Eran <haggaie@mellanox.com>, Shachar Raindel <raindel@mellanox.com>, Liran Liss <liranl@mellanox.com>, Roland Dreier <roland@purestorage.com>, Ben Sander <ben.sander@amd.com>, Greg Stoner <Greg.Stoner@amd.com>, John Bridgman <John.Bridgman@amd.com>, Michael Mantor <Michael.Mantor@amd.com>, Paul Blinzer <Paul.Blinzer@amd.com>, "Laurent Morichetti" <Laurent.Morichetti@amd.com>, Alexander Deucher <Alexander.Deucher@amd.com>, Oded Gabbay <Oded.Gabbay@amd.com>, Jérôme Glisse <jglisse@redhat.com>
X-Original-Date Wed, 3 Jun 2015 16:02:02 -0700
X-Original-Message-ID <alpine.LNX.2.03.1506031555440.980@nvidia.com>
X-Original-References <1432236705-4209-1-git-send-email-j.glisse@gmail.com> <1432236705-4209-2-git-send-email-j.glisse@gmail.com> <alpine.LNX.2.03.1505292001580.13637@nvidia.com> <20150601190331.GA4170@gmail.com> <alpine.LNX.2.03.1506011525460.17506@nvidia.com> <20150603160711.GA2602@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1158125

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, 3 Jun 2015, Jerome Glisse wrote:
> On Mon, Jun 01, 2015 at 04:10:46PM -0700, John Hubbard wrote:
> > On Mon, 1 Jun 2015, Jerome Glisse wrote:
> > > On Fri, May 29, 2015 at 08:43:59PM -0700, John Hubbard wrote:
> > > > On Thu, 21 May 2015, j.glisse@gmail.com wrote:
> > > > > From: Jérôme Glisse <jglisse@redhat.com>
> 
> [...]
> > > > We may have to add MMU_READ_WRITE (and maybe another one, I haven't 
> > > > bottomed out on that), if you agree with the above approach of 
> > > > always sending a precise event, instead of "protection changed".
> > > 
> > > I think Linus point made sense last time, but i would need to read
> > > again the thread. The idea of that patch is really to provide context
> > > information on what kind of CPU page table changes is happening and
> > > why.
> > >
> > 
> > Shoot, I tried to find that conversation, but my search foo is too weak. 
> > If you have a link to that thread, I'd appreciate it, so I can refresh my 
> > memory.
> > 
> > I was hoping to re-read it and see if anything has changed. It's not 
> > really a huge problem to call find_vma() again, but I do want to be sure 
> > that there's a good reason for doing so.
> >  
> > Otherwise, I'll just rely on your memory that Linus preferred your current 
> > approach, and call it good, then.
> 
> http://lkml.iu.edu/hypermail/linux/kernel/1406.3/04880.html
> 
> I am working on doing some of the changes discussed so far, i will push my
> tree to git://people.freedesktop.org/~glisse/linux hmm branch once i am done.


Aha, OK, that was back when you were passing around the vma. But now, 
you're not doing that anymore. It's just: mm*, range* (start, end, 
event_type), and sometimes page* and exclude*). So I think it's still 
reasonable to either pass down pure vma flags, or else add in new event 
types, in order to avoid having to lookup the vma later.

We could still get NAK'd for adding ugly new event types, but if you're 
going to add the event types at all, let's make them complete, so that we 
really *earn* the NAK. :)

> 
> Cheers,
> Jérôme
> 

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH 01/36] mmu_notifier: add event information to address  invalidation v7 Jerome Glisse <j.glisse@gmail.com> - 2015-06-03 18:10 +0200
  Re: [PATCH 01/36] mmu_notifier: add event information to address  invalidation v7 John Hubbard <jhubbard@nvidia.com> - 2015-06-04 01:10 +0200

csiph-web