From: Ian Campbell <Ian.Campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Chunyan Liu <cyliu@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH] libxl: adjust hvm direct boot code
Date: Thu, 15 Jan 2015 13:50:27 +0000 [thread overview]
Message-ID: <1421329827.5437.12.camel@citrix.com> (raw)
In-Reply-To: <1421324991-5146-1-git-send-email-wei.liu2@citrix.com>
On Thu, 2015-01-15 at 12:29 +0000, Wei Liu wrote:
> The -initrd and -append parameters should only be supplied to QEMU iff
> -kernel parameter is present, because that's how QEMU works.
What do you think of catching this e.g. in the setdefault function and
warning or erroring in this case?
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Cc: Chunyan Liu <cyliu@suse.com>
> ---
> tools/libxl/libxl_dm.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index c2b0487..7226f5d 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -527,14 +527,15 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
> if (b_info->type == LIBXL_DOMAIN_TYPE_HVM) {
> int ioemu_nics = 0;
>
> - if (b_info->kernel)
> + if (b_info->kernel) {
> flexarray_vappend(dm_args, "-kernel", b_info->kernel, NULL);
>
> - if (b_info->ramdisk)
> - flexarray_vappend(dm_args, "-initrd", b_info->ramdisk, NULL);
> + if (b_info->ramdisk)
> + flexarray_vappend(dm_args, "-initrd", b_info->ramdisk, NULL);
>
> - if (b_info->cmdline)
> - flexarray_vappend(dm_args, "-append", b_info->cmdline, NULL);
> + if (b_info->cmdline)
> + flexarray_vappend(dm_args, "-append", b_info->cmdline, NULL);
> + }
>
> if (b_info->u.hvm.serial || b_info->u.hvm.serial_list) {
> if ( b_info->u.hvm.serial && b_info->u.hvm.serial_list )
next prev parent reply other threads:[~2015-01-15 13:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 12:29 [PATCH] libxl: adjust hvm direct boot code Wei Liu
2015-01-15 13:50 ` Ian Campbell [this message]
2015-01-15 14:51 ` Wei Liu
2015-01-16 1:49 ` Chun Yan Liu
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=1421329827.5437.12.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=cyliu@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--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.