Li, Xin B
2007-Aug-06 15:28 UTC
[Xen-devel] memory calculation mismatch between e820 and guest RAM size
In E820, tom of memory is guest memory size we give in the config file, but guest RAM we allocate is a little bigger than what E820 sets, because we don''t allocate memory for VGA hole from 0xA0000 to 0xBFFFF. 2 ways to fix it: 1) align to current E820 setting, so need to change memory allocation code in tools. 2) align to guest memory allocation, so need to change e820 setting. Which one do you prefer? -Xin _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-Aug-06 15:35 UTC
Re: [Xen-devel] memory calculation mismatch between e820 and guest RAM size
I don''t understand what the problem is that you think needs fixing. All the memory allocated in xc_hvm_build.c:setup_guest() is marked as E820_RAM in the e820 map (except for EBDA and BIOSROM regions). -- Keir On 6/8/07 16:28, "Li, Xin B" <xin.b.li@intel.com> wrote:> In E820, tom of memory is guest memory size we give in the config file, > but guest RAM we allocate is a little bigger than what E820 sets, > because we don''t allocate memory for VGA hole from 0xA0000 to 0xBFFFF. > 2 ways to fix it: > 1) align to current E820 setting, so need to change memory allocation > code in tools. > 2) align to guest memory allocation, so need to change e820 setting. > Which one do you prefer? > -Xin > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Li, Xin B
2007-Aug-06 15:41 UTC
RE: [Xen-devel] memory calculation mismatch between e820 and guest RAM size
Oops, we don''t allocate memory for vga hole in the page array, my fault. -Xin>-----Original Message----- >From: Keir Fraser [mailto:keir@xensource.com] >Sent: Monday, August 06, 2007 11:35 PM >To: Li, Xin B >Cc: xen-devel@lists.xensource.com >Subject: Re: [Xen-devel] memory calculation mismatch between >e820 and guest RAM size > >I don''t understand what the problem is that you think needs >fixing. All the >memory allocated in xc_hvm_build.c:setup_guest() is marked as >E820_RAM in >the e820 map (except for EBDA and BIOSROM regions). > > -- Keir > >On 6/8/07 16:28, "Li, Xin B" <xin.b.li@intel.com> wrote: > >> In E820, tom of memory is guest memory size we give in the >config file, >> but guest RAM we allocate is a little bigger than what E820 sets, >> because we don''t allocate memory for VGA hole from 0xA0000 >to 0xBFFFF. >> 2 ways to fix it: >> 1) align to current E820 setting, so need to change memory allocation >> code in tools. >> 2) align to guest memory allocation, so need to change e820 setting. >> Which one do you prefer? >> -Xin >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel