Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758281AbYBTDwH (ORCPT ); Tue, 19 Feb 2008 22:52:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751452AbYBTDvz (ORCPT ); Tue, 19 Feb 2008 22:51:55 -0500 Received: from n21.bullet.mail.mud.yahoo.com ([68.142.200.112]:21057 "HELO n21.bullet.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751438AbYBTDvy (ORCPT ); Tue, 19 Feb 2008 22:51:54 -0500 X-Yahoo-Newman-Id: 340437.92160.bm@omp413.mail.mud.yahoo.com DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=rgq1fHEVSzSe+njK3uTL3IgnQfMQN1QlXFq0bI+nyPFvZ2cxwa3QlWQ3XITVPVRMFn2TRAPzzeV79FdoL+7K/sikGkdFnyEa/mjJ1dcmDH5Jim68IalHy7T1psvdnqv4+1NH8pO5TWQpGL1hePIQ/JscyxhdlMqxacbzriIYt78= ; X-YMail-OSG: UxhXQGUVM1k5SUPQ5.24NHQLL3BmBRSwg96UbmNvBNQI54Z4q9aSyBbhDpK_meQyG.fHr2ir5A-- X-Yahoo-Newman-Property: ymail-3 From: Nick Piggin To: Robin Holt Subject: Re: [patch 5/6] mmu_notifier: Support for drivers with revers maps (f.e. for XPmem) Date: Wed, 20 Feb 2008 14:51:45 +1100 User-Agent: KMail/1.9.5 Cc: Christoph Lameter , akpm@linux-foundation.org, Andrea Arcangeli , Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , general@lists.openfabrics.org, Steve Wise , Roland Dreier , Kanoj Sarcar , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com References: <20080215064859.384203497@sgi.com> <200802201055.21343.nickpiggin@yahoo.com.au> <20080220031221.GE11391@sgi.com> In-Reply-To: <20080220031221.GE11391@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802201451.46069.nickpiggin@yahoo.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1518 Lines: 33 On Wednesday 20 February 2008 14:12, Robin Holt wrote: > For XPMEM, we do not currently allow file backed > mapping pages from being exported so we should never reach this condition. > It has been an issue since day 1. We have operated with that assumption > for 6 years and have not had issues with that assumption. The user of > xpmem is MPT and it controls the communication buffers so it is reasonable > to expect this type of behavior. OK, that makes things simpler. So why can't you export a device from your xpmem driver, which can be mmap()ed to give out "anonymous" memory pages to be used for these communication buffers? I guess you may also want an "munmap/mprotect" callback, which we don't have in the kernel right now... but at least you could prototype it easily by having an ioctl to be called before munmapping or mprotecting (eg. the ioctl could prevent new TLB setup for the region, and shoot down existing ones). This is actually going to be much faster for you if you use any threaded applications, because you will be able to do all the shootdown round trips outside mmap_sem, and so you will be able to have other threads faulting and even mmap()ing / munmaping at the same time as the shootdown is happening. I guess there is some catch... -- 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/