WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Insane contiguous physical memory requirements in blkbk/

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Insane contiguous physical memory requirements in blkbk/blktap
From: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Date: Thu, 05 Oct 2006 17:40:40 +0100
Cc: Aron Griffis <aron@xxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 05 Oct 2006 09:41:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C14AEF09.21E3%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C14AEF09.21E3%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

On Thu, 2006-10-05 at 17:19 +0100, Keir Fraser 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'.

> 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.

OK, I was looking at blkback in this case.  Indexing is easy, we already
have page->index for that purpose, and I don't think there's anything
else using that for these pages once they are detached from the main VM.

Is there any reason we're not using memory in the vmalloc area for these
things?  That memory is *supposed* to be allocated out for virtual use
on demand.

--Stephen



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel