From: "Lily Huang" Subject: How to allocate a memory page in virtual memory, but does not use physical memory? Date: Thu, 10 Aug 2006 21:27:02 -0400 Message-ID: <4d616cca0608101827w216c92dakcccc22195071b8d6@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1867795379==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1867795379== Content-Type: multipart/alternative; boundary="----=_Part_51868_21508527.1155259622509" ------=_Part_51868_21508527.1155259622509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_51868_21508527.1155259622509 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_51868_21508527.1155259622509-- --===============1867795379== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1867795379==--