From: Keir Fraser Subject: Re: Insane contiguous physical memory requirements in blkbk/blktap Date: Thu, 05 Oct 2006 16:47:51 +0100 Message-ID: References: <20061005153838.GA25054@fc.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061005153838.GA25054@fc.hp.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: Aron Griffis , "Stephen C. Tweedie" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 5/10/06 16:38, "Aron Griffis" wrote: >> But is there any need at all for these pages to be contiguous? > > I've been looking at the exact same question, but don't know the > answer. If you come up with a patch before I do, I'd be thrilled to > test it. 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'. That'll get rid of any arithmetic on the virtual addresses that depends on them being contiguous. Then the drivers can simply grab a bag of order-0 allocations. That really only leaves the question of how much of this can be put in a helper function (probably in balloon driver again) for use of all our drivers. -- Keir