Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757593AbYAVXiI (ORCPT ); Tue, 22 Jan 2008 18:38:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753437AbYAVXhx (ORCPT ); Tue, 22 Jan 2008 18:37:53 -0500 Received: from gate.crashing.org ([63.228.1.57]:40075 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbYAVXhw (ORCPT ); Tue, 22 Jan 2008 18:37:52 -0500 Subject: Re: [kvm-devel] [PATCH] export notifier #1 From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: Christoph Lameter Cc: Andrea Arcangeli , Avi Kivity , Izik Eidus , Andrew Morton , Nick Piggin , kvm-devel@lists.sourceforge.net, steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com, holt@sgi.com, Hugh Dickins In-Reply-To: References: <20080113162418.GE8736@v2.random> <20080116124256.44033d48@bree.surriel.com> <478E4356.7030303@qumranet.com> <20080117162302.GI7170@v2.random> <478F9C9C.7070500@qumranet.com> <20080117193252.GC24131@v2.random> <20080121125204.GJ6970@v2.random> <4795F9D2.1050503@qumranet.com> <20080122144332.GE7331@v2.random> <20080122200858.GB15848@v2.random> Content-Type: text/plain Date: Wed, 23 Jan 2008 10:36:29 +1100 Message-Id: <1201044989.6807.46.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 25 On Tue, 2008-01-22 at 12:34 -0800, Christoph Lameter wrote: > > - Notifiers are called *after* we tore down ptes. At that point pages > may already have been freed and reused. This means that there can > still be uses of the page by the user of mmu_ops after the OS has > dropped its mapping. IMHO the foreign entity needs to drop its > mappings first. That also ensures that the entities operated > upon continue to exist. That's definitely an issue. Maybe having the foreign entity get a reference to the page and drop it when it unmaps would help ? > - anon_vma/inode and pte locks are held during callbacks. So how does that fix the problem of sleeping then ? Ben. -- 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/