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

[Xen-devel] How to allocate a memory page in virtual memory, but does no

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] How to allocate a memory page in virtual memory, but does not use physical memory?
From: "Lily Huang" <ushuanglily@xxxxxxxxx>
Date: Thu, 10 Aug 2006 21:27:02 -0400
Delivery-date: Thu, 10 Aug 2006 18:28:25 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=DiZN9GaMkyDYh2PSEPkfoVcr0Y6hGhxjnp5YMd8UkMTgpw3nbE1Z2EDPjWCo519ynZASeHsCkJNZe8CdU4x1vJzT7Z7LN3wognWX0QTYXdNQ7j79/loYmsXIxN/l32mn+JKqXBFU8KCWgq+eRv0WJo/4/5ikqeXFjnOHvekDV+Q=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Sorry, this question might be a little dumb.

I am trying to allocate pages in a domU and map certain pages from Dom0. Since the pages are already in dom0's physical memory, it is desired that domu only allocate a "virtual space" for remapping, but does not need to use physical memory allocated to domu. I tried function balloon_alloc_empty_page_range() and alloc_pages(). But both of them seem to use physical memory once allocation succeed.

So is there any way to allocate virtual space in address space, but does not pay any physical memory? This space is used only for remapping.

Thanks in advance for generous help!

-lily
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>