Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763088AbYBACmL (ORCPT ); Thu, 31 Jan 2008 21:42:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753425AbYBACl6 (ORCPT ); Thu, 31 Jan 2008 21:41:58 -0500 Received: from relay1.sgi.com ([192.48.171.29]:37967 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752627AbYBACl5 (ORCPT ); Thu, 31 Jan 2008 21:41:57 -0500 Date: Thu, 31 Jan 2008 18:41:57 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Robin Holt cc: Andrea Arcangeli , Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com Subject: Re: mmu_notifier: invalidate_range for move_page_tables In-Reply-To: <20080201023815.GC26420@sgi.com> Message-ID: References: <20080131045750.855008281@sgi.com> <20080131045812.785269387@sgi.com> <20080131123118.GK7185@v2.random> <20080201001355.GU7185@v2.random> <20080201023815.GC26420@sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 27 On Thu, 31 Jan 2008, Robin Holt wrote: > On Thu, Jan 31, 2008 at 05:57:25PM -0800, Christoph Lameter wrote: > > Move page tables also needs to invalidate the external references > > and hold new references off while moving page table entries. > > I must admit to not having spent any time thinking about this, but aren't > we moving the entries from one set of page tables to the other, leaving > the pte_t entries unchanged. I guess I should go look, but could you > provide a quick pointer in the proper direction as to why we need to > recall externals when the before and after look of these page tables > will have the same information for the TLBs. remap changes the address of pages in a process. The pages appear at another address. Thus the external pte will have the wrong information if not invalidated. Do a man mremap -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/