All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: tim@xen.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v2 7/9] xen: arm: store per-boot module type instead of relying on index
Date: Fri, 27 Jun 2014 11:43:12 +0100	[thread overview]
Message-ID: <53AD4AC0.8010009@linaro.org> (raw)
In-Reply-To: <1403801151-11007-7-git-send-email-ian.campbell@citrix.com>

Hi Ian,

On 26/06/14 17:45, Ian Campbell wrote:
> This is more natural and better matches how multiboot is actually supposed to
> work.

I don't find any modification of consider_modules in this series. Is it 
normal? This function is badly assuming that MOD_XEN will be always the 
first one. So may end up to forget to exclude some modules during the 
memory allocation.

[..]

> diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
> index 5eef8a3..c1a54e5 100644
> --- a/xen/arch/arm/domain_build.c
> +++ b/xen/arch/arm/domain_build.c
> @@ -161,9 +161,10 @@ static int write_properties(struct domain *d, struct kernel_info *kinfo,
>       int res = 0;
>       int had_dom0_bootargs = 0;
>
> -    if ( bootinfo.modules.nr_mods >= MOD_KERNEL &&
> -         bootinfo.modules.module[MOD_KERNEL].cmdline[0] )
> -        bootargs = &bootinfo.modules.module[MOD_KERNEL].cmdline[0];
> +    struct bootmodule *mod = boot_module_find_by_kind(BOOTMOD_KERNEL);

It looks like a bit pointless to search the BOOTMOD_KERNEL everytime we 
try to write properties of a node. But it's not the purpose of this patch.

[..]

>   struct bootmodules {
>       int nr_mods;
>       /* Module 0 is Xen itself, followed by the provided modules-proper */

Does this comment still relevant?

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-06-27 10:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 16:45 [PATCH v2 0/9] xen: arm: Refactor/improve early DT parsing and multiboot module support Ian Campbell
2014-06-26 16:45 ` [PATCH v2 1/9] xen: arm: implement generic multiboot compatibility strings Ian Campbell
2014-06-26 16:45 ` [PATCH v2 2/9] xen: arm: /chosen/module@N/bootargs bootprotcol node is not deprecated Ian Campbell
2014-06-26 16:45 ` [PATCH v2 3/9] xen: arm: prefer typesafe max()/min() over MAX()/MIN() Ian Campbell
2014-06-26 16:45 ` [PATCH v2 4/9] xen: arm: rename early_info structs Ian Campbell
2014-06-26 16:45 ` [PATCH v2 5/9] xen: arm: move boot time fdt parsing into separate file Ian Campbell
2014-06-26 16:45 ` [PATCH v2 6/9] xen: arm: move device_tree_bootargs to bootfdt.c, renaming to boot_fdt_cmdline Ian Campbell
2014-06-26 16:45 ` [PATCH v2 7/9] xen: arm: store per-boot module type instead of relying on index Ian Campbell
2014-06-27 10:43   ` Julien Grall [this message]
2014-06-27 12:27     ` Ian Campbell
2014-06-26 16:45 ` [PATCH v2 8/9] xen: arm: support bootmodule type detection by ordering Ian Campbell
2014-06-26 16:45 ` [PATCH v2 9/9] xen: arm: update multiboot device tree bindings Ian Campbell
2014-06-26 16:46 ` [PATCH v2 0/9] xen: arm: Refactor/improve early DT parsing and multiboot module support Ian Campbell
2014-06-27 11:58   ` Fu Wei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53AD4AC0.8010009@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.