From: Keir Fraser Subject: Re: Insane contiguous physical memory requirements in blkbk/blktap Date: Thu, 05 Oct 2006 17:19:05 +0100 Message-ID: References: <1160064635.6513.38.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1160064635.6513.38.camel@sisko.scot.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Stephen C. Tweedie" Cc: Aron Griffis , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 5/10/06 17:10, "Stephen C. Tweedie" wrote: >> This is easily fixable. Anywhere we use the virtual address to compute an >> offset into a state structure, we can instead store the appropriate 'slot >> index' in a spare field in the appropriate 'struct page'. > > As far as I can tell, nothing uses the VA in any way --- it can't, > because the start of the order-10 kmalloc area is not actually used > anywhere after the initial mmap setup. After making the variable > mmap_vstart local to the __init function, everything still compiles, so > I don't think there's anything lurking in header files that implicitly > relies on it. I'm thinking of netback. That's the one driver where I think we use a virtual address (actually page-struct pointer) as a handle to driver-internal state. -- Keir