From: Ian Campbell Subject: Re: [PATCH v4] xen: arm: Only lookup kernel/initrd bootmodule once while building dom0. Date: Thu, 24 Jul 2014 16:51:04 +0100 Message-ID: <1406217064.8132.9.camel@kazak.uk.xensource.com> References: <1405944556-8372-1-git-send-email-ian.campbell@citrix.com> <53CD05A6.2020203@linaro.org> <1405945441.25022.48.camel@kazak.uk.xensource.com> <53CD07D8.6000604@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53CD07D8.6000604@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-07-21 at 13:30 +0100, Julien Grall wrote: > >>> @@ -455,7 +455,7 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo, > >>> > >>> if ( dt_node_path_is_equal(node, "/chosen") ) > >>> { > >>> - struct bootmodule *mod = boot_module_find_by_kind(BOOTMOD_RAMDISK); > >>> + const struct bootmodule *mod = kinfo->initrd_bootmodule; > >> > >> Technically speaking, we only execute once this part of the code. So > >> having a new field in kernel_info doesn't seem useful. > > > > It seemed to me to be consistent to only lookup the ramdisk once too, > > instead of here and in initrd_load(). > Acked-by: Julien Grall Thanks, applied.