Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764424AbYBAC0p (ORCPT ); Thu, 31 Jan 2008 21:26:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753405AbYBAC0h (ORCPT ); Thu, 31 Jan 2008 21:26:37 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:46457 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752434AbYBAC0h (ORCPT ); Thu, 31 Jan 2008 21:26:37 -0500 Date: Thu, 31 Jan 2008 18:26:36 -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: [PATCH] mmu notifiers #v5 In-Reply-To: <20080201022321.GZ26420@sgi.com> Message-ID: References: <20080131045750.855008281@sgi.com> <20080131171806.GN7185@v2.random> <20080131232842.GQ7185@v2.random> <20080201022321.GZ26420@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: 995 Lines: 26 On Thu, 31 Jan 2008, Robin Holt wrote: > > Mutex locking? Could you be more specific? > > I think he is talking about the external locking that xpmem will need > to do to ensure we are not able to refault pages inside of regions that > are undergoing recall/page table clearing. At least that has been my > understanding to this point. Right this has to be something like rw spinlock. Its needed for both GRU/XPmem. Not sure about KVM. Take the read lock for invalidate operations. These can occur concurrently. (Or a simpler implementation for the GRU may just use a spinlock). The write lock must be held for populate operations. Lock can be refined as needed by the notifier driver. F.e. locking could be restricted to certain ranges. -- 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/