From: weiming Subject: Re: [Xen-devel] Xen - Guest memory allocation Date: Fri, 6 Jun 2008 15:12:49 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1237407214==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: dinesh chandrasekaran Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1237407214== Content-Type: multipart/alternative; boundary="----=_Part_5219_19027293.1212779569741" ------=_Part_5219_19027293.1212779569741 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not very sure about your problem. Can the Hypervisor address the whole 5GB space? If yes, it can then allocate any of them to guests. Or you can modify the "start info" passed to Guest OS. You can change the page_nr, a machine-PFN translation table to enable the guest to address the memory space that you want. It's weird. On Fri, Jun 6, 2008 at 2:57 PM, dinesh chandrasekaran < dinesh_chan8@hotmail.com> wrote: > YES. > > But if I want to add memory of type E820_USABLE to xen memory map > during boot up (as per xen/e820.c) where the memory to be added lies behind > a PCI device? > > For ex, > If a PCI device reports it has 1GB of memory behind it. > And XEN has identified th RAM memory to be 4GB. > > How can the PCI - 1GB can be added as usable memory to XEN's memory pool to > get a cumulative size of 5GB; > > thanks, > Dinesh C > > On Fri, Jun 6, 2008 at 3:00 PM, Weiming wrote: > > AFAIK, In para virtualization, when guest boots, it reads the memory layout > from a special page (start info page) instead of from bios. > If your guest os is a PV Linux, you can check its source code (e.g. > start_kernel(), etc.) > > Thanks, > Weiming > > On Fri, Jun 6, 2008 at 2:00 PM, dinesh chandrasekaran < > dinesh_chan8@hotmail.com> wrote: > > > > ------------------------------ > CoolHotmail : Your crazy personality deserves a unique email identity like > yourname@iamcrazy.in. Choose from this and hundreds other unique email ids > now Try it! > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > ------=_Part_5219_19027293.1212779569741 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not very sure about your problem. Can the Hypervisor address the whole 5GB space? If yes, it can then allocate any of them to guests.

Or you can modify the "start info" passed to Guest OS. You can change the page_nr, a machine-PFN translation table to enable the guest to address the memory space that you want. It's weird.

On Fri, Jun 6, 2008 at 2:57 PM, dinesh chandrasekaran <dinesh_chan8@hotmail.com> wrote:
YES.

        But if I want to add memory of type E820_USABLE to xen memory map during boot up (as per xen/e820.c) where the memory to be added lies behind a PCI device?

For ex,
If a PCI device reports it has 1GB of memory behind it.
And XEN has identified th RAM memory to be 4GB.

How can the PCI - 1GB can be added as usable memory to XEN's memory pool to get a cumulative size of 5GB;
 
thanks,
Dinesh C

On Fri, Jun 6, 2008 at 3:00 PM, Weiming wrote:

AFAIK, In para virtualization, when guest boots, it reads the memory layout from a special page (start info page) instead of from bios.
If your guest os is a PV Linux, you can check its source code (e.g. start_kernel(), etc.)

Thanks,
Weiming

On Fri, Jun 6, 2008 at 2:00 PM, dinesh chandrasekaran <dinesh_chan8@hotmail.com> wrote:




CoolHotmail : Your crazy personality deserves a unique email identity like yourname@iamcrazy.in. Choose from this and hundreds other unique email ids now Try it!

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


------=_Part_5219_19027293.1212779569741-- --===============1237407214== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users --===============1237407214==--