[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] How to allocate a memory page in virtual memory, but does not use physical memory?


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.