From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753828AbaIKKCq (ORCPT ); Thu, 11 Sep 2014 06:02:46 -0400 Received: from eu1sys200aog131.obsmtp.com ([207.126.144.205]:40702 "EHLO eu1sys200aog131.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753158AbaIKKCo (ORCPT ); Thu, 11 Sep 2014 06:02:44 -0400 Message-ID: <541172D4.50608@mellanox.com> Date: Thu, 11 Sep 2014 13:00:52 +0300 From: Haggai Eran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: , , , CC: Linus Torvalds , , Mel Gorman , "H. Peter Anvin" , Peter Zijlstra , Andrea Arcangeli , Johannes Weiner , Larry Woodman , Rik van Riel , Dave Airlie , Brendan Conoboy , Joe Donohue , Duncan Poole , Sherry Cheung , Subhash Gutti , John Hubbard , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , Shachar Raindel , Liran Liss , Roland Dreier , Ben Sander , Greg Stoner , John Bridgman , Michael Mantor , Paul Blinzer , Laurent Morichetti , Alexander Deucher , Oded Gabbay , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= Subject: Re: [RFC PATCH 1/6] mmu_notifier: add event information to address invalidation v4 References: <1409339415-3626-1-git-send-email-j.glisse@gmail.com> <1409339415-3626-2-git-send-email-j.glisse@gmail.com> In-Reply-To: <1409339415-3626-2-git-send-email-j.glisse@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.8.3.227] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/08/2014 22:10, j.glisse@gmail.com wrote: > + * - MMU_MUNMAP: the range is being unmapped (outcome of a munmap syscall or > + * process destruction). However, access is still allowed, up until the > + * invalidate_range_free_pages callback. This also implies that secondary > + * page table can be trimmed, because the address range is no longer valid. I couldn't find the invalidate_range_free_pages callback. Is that a left over from a previous version of the patch? Also, I think that you have to invalidate the secondary PTEs of the range being unmapped immediately, because put_page may be called immediately after the invalidate_range_start returns. Haggai