* [PATCH] tools: (lib)xl: remove stray uses of build_info->u.pv.{kernel, ramdisk, cmdline}
@ 2014-08-28 20:25 Ian Campbell
2014-08-28 20:45 ` Julien Grall
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2014-08-28 20:25 UTC (permalink / raw)
To: xen-devel
Cc: Ian Campbell, stefano.stabellini, tim, julien.grall, ian.jackson,
Chunyan Liu
The commit 11dffa2359e8 "xen: pass kernel initrd to qemu" deprecated these in
favour of build_info->{kernel,ramdisk,cmdline} but missed a couple of uses.
The ARM case breaks guest boot by omitting the command line from the DTB while
the xl SXP one is mostly cosmetic.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Chunyan Liu <cyliu@suse.com>
---
tools/libxl/libxl_arm.c | 4 ++--
tools/libxl/xl_sxp.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c
index 3d30242..a122e4a 100644
--- a/tools/libxl/libxl_arm.c
+++ b/tools/libxl/libxl_arm.c
@@ -191,8 +191,8 @@ static int make_chosen_node(libxl__gc *gc, void *fdt, bool ramdisk,
res = fdt_begin_node(fdt, "chosen");
if (res) return res;
- if (info->u.pv.cmdline) {
- res = fdt_property_string(fdt, "bootargs", info->u.pv.cmdline);
+ if (info->cmdline) {
+ res = fdt_property_string(fdt, "bootargs", info->cmdline);
if (res) return res;
}
diff --git a/tools/libxl/xl_sxp.c b/tools/libxl/xl_sxp.c
index 48eb608..1c98352 100644
--- a/tools/libxl/xl_sxp.c
+++ b/tools/libxl/xl_sxp.c
@@ -144,9 +144,9 @@ void printf_info_sexp(int domid, libxl_domain_config *d_config)
break;
case LIBXL_DOMAIN_TYPE_PV:
printf("\t\t(linux %d)\n", 0);
- printf("\t\t\t(kernel %s)\n", b_info->u.pv.kernel);
- printf("\t\t\t(cmdline %s)\n", b_info->u.pv.cmdline);
- printf("\t\t\t(ramdisk %s)\n", b_info->u.pv.ramdisk);
+ printf("\t\t\t(kernel %s)\n", b_info->kernel);
+ printf("\t\t\t(cmdline %s)\n", b_info->cmdline);
+ printf("\t\t\t(ramdisk %s)\n", b_info->ramdisk);
printf("\t\t\t(e820_host %s)\n",
libxl_defbool_to_string(b_info->u.pv.e820_host));
printf("\t\t)\n");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: (lib)xl: remove stray uses of build_info->u.pv.{kernel, ramdisk, cmdline}
2014-08-28 20:25 [PATCH] tools: (lib)xl: remove stray uses of build_info->u.pv.{kernel, ramdisk, cmdline} Ian Campbell
@ 2014-08-28 20:45 ` Julien Grall
2014-08-28 21:01 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Julien Grall @ 2014-08-28 20:45 UTC (permalink / raw)
To: Ian Campbell, xen-devel; +Cc: ian.jackson, tim, Chunyan Liu, stefano.stabellini
Hi Ian,
On 28/08/14 16:25, Ian Campbell wrote:
> The commit 11dffa2359e8 "xen: pass kernel initrd to qemu" deprecated these in
> favour of build_info->{kernel,ramdisk,cmdline} but missed a couple of uses.
>
> The ARM case breaks guest boot by omitting the command line from the DTB while
> the xl SXP one is mostly cosmetic.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Regards,
--
Julien Grall
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: (lib)xl: remove stray uses of build_info->u.pv.{kernel, ramdisk, cmdline}
2014-08-28 20:45 ` Julien Grall
@ 2014-08-28 21:01 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2014-08-28 21:01 UTC (permalink / raw)
To: Julien Grall; +Cc: ian.jackson, stefano.stabellini, tim, Chunyan Liu, xen-devel
On Thu, 2014-08-28 at 16:45 -0400, Julien Grall wrote:
> Hi Ian,
>
> On 28/08/14 16:25, Ian Campbell wrote:
> > The commit 11dffa2359e8 "xen: pass kernel initrd to qemu" deprecated these in
> > favour of build_info->{kernel,ramdisk,cmdline} but missed a couple of uses.
> >
> > The ARM case breaks guest boot by omitting the command line from the DTB while
> > the xl SXP one is mostly cosmetic.
> >
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Reviewed-by: Julien Grall <julien.grall@linaro.org>
Thanks. Since this is blocking staging propagation I have applied
without further ado.
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-28 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 20:25 [PATCH] tools: (lib)xl: remove stray uses of build_info->u.pv.{kernel, ramdisk, cmdline} Ian Campbell
2014-08-28 20:45 ` Julien Grall
2014-08-28 21:01 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).