From: Ian Campbell Subject: Re: Xen on ARM: domU ramdisk support Date: Wed, 26 Feb 2014 09:52:03 +0000 Message-ID: <1393408323.18730.13.camel@kazak.uk.xensource.com> References: <20140226000053.GE45200@galois.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140226000053.GE45200@galois.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jonathan Daugherty Cc: Adam Wick , Xen Development List List-Id: xen-devel@lists.xenproject.org On Tue, 2014-02-25 at 16:00 -0800, Jonathan Daugherty wrote: > Hi, > > I'm attempting to load a Linux domU on an Arndale board, but the > 'ramdisk' setting in my domain configuration file appears to have no > impact on the Linux kernel I'm booting. What is the status of support > for domU initrds in Xen on ARM at the moment? Still TBD I'm afraid :-( > I took a look at libxl and found that perhaps libxl_arm.c should be > doing something to set up the FDT nodes describing the initrd start/end, > but I see no evidence of it there. Right, I think that is one piece which is missing. The other bit is that xc_dom_arm.c:arch_setup_meminit (probably that's the right place) need to pick a suitable address and set it in ramdisk_seg. The selected address will need to conform to the constraints documented in linux/Documentation/arm64/booting.txt and linux/Documentation/arm/Booting. It can either meet both, as xen/arch/arm/kernel.c does for dom0, or make it conditional on the guest type. Once ramdisk_seg is populated I *think* the generic libxc code will load it into RAM automatically and then it just needs the reference from the DTB nodes. > I may have time to write a patch if this is something that needs doing. It is, and please do it would be much appreciated. Ian.