Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424739AbWLHGLc (ORCPT ); Fri, 8 Dec 2006 01:11:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1424742AbWLHGLc (ORCPT ); Fri, 8 Dec 2006 01:11:32 -0500 Received: from gw.goop.org ([64.81.55.164]:59610 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424739AbWLHGLb (ORCPT ); Fri, 8 Dec 2006 01:11:31 -0500 Message-ID: <45790212.8000608@goop.org> Date: Thu, 07 Dec 2006 22:11:30 -0800 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Christoph Lameter CC: Mel Gorman , Andrew Morton , Linux Memory Management List , Linux Kernel Mailing List Subject: Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated References: <20061204113051.4e90b249.akpm@osdl.org> <20061204120611.4306024e.akpm@osdl.org> <20061204131959.bdeeee41.akpm@osdl.org> <20061204142259.3cdda664.akpm@osdl.org> <20061205112541.2a4b7414.akpm@osdl.org> <20061205214721.GE20614@skynet.ie> <4578BE37.1010109@goop.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1191 Lines: 27 Christoph Lameter wrote: > The same can be done using the virtual->physical mappings that exist on > many platforms for the kernel address space (ia64 dynamically calculates > those, x86_64 uses a page table with 2M pages for mapping the kernel). Yes, that's basically what Xen does - there's a nonlinear mapping from kernel virtual to machine pages (and usermode pages are put through the same transformation before being mapped). > The > problem is that the 1-1 mapping between physical and virtual addresses > will have to be (at least partially) sacrificed which may lead to > complications with DMA devices. > Yes, any driver which expects contigious kernel pages to be physically contigious will be sorely disappointed. This isn't too hard to deal with (since such drivers are often buggy anyway, making poor assumptions about the relationship between physical addresses and bus addresses). An IOMMU could help as well. J - 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/