From: Stephane Eranian Subject: Re: xen/ia64 and elilo relocation Date: Wed, 23 Feb 2005 12:54:32 -0800 Message-ID: <20050223205432.GA21999@frankl.hpl.hp.com> References: <4213F913.9020607@intel.com> <20050220164246.GA17261@frankl.hpl.hp.com> <421AD0AF.8070906@intel.com> <1109091008.21007.50.camel@uluru.grenoble.hp.com> <421CD5BE.3030504@intel.com> Reply-To: eranian@hpl.hp.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <421CD5BE.3030504@intel.com> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Arun Sharma Cc: xen-devel@lists.sourceforge.net, "Magenheimer, Dan (HP Labs Fort Collins)" , brett@hp.com List-Id: xen-devel@lists.xenproject.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Arun, > One thing I noticed is that if the loading of initrd (xenlinux) fails, the > memory for initrd is freed, but the memory for the main image (xen) is not > freed? > I think that's probably it. I don't know what I put that comment that says "free_kmem() responsibility of loader". Well, load_initrd() does not free on abort. You should try the attached patch. Thanks. --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="elilo-initrd.diff" --- elilo-3.4/elilo.c 2003-08-29 10:41:38.000000000 -0700 +++ elilo-3.4-new/elilo.c 2005-02-23 12:51:38.000000000 -0800 @@ -123,8 +123,7 @@ case ELILO_LOAD_ERROR: goto exit_error; case ELILO_LOAD_ABORTED: - /* the free_kmem() is the responsibility of the loader */ - + free_kmem(); /* we drop initrd in case we aborted the load */ elilo_opt.initrd[0] = CHAR_NULL; elilo_opt.prompt = 1; --d6Gm4EdcadzBjdND-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click