From: Ian Campbell <Ian.Campbell@citrix.com>
To: Chunyan Liu <cyliu@suse.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com,
xen-devel@lists.xen.org
Subject: Re: [PATCH] missing chunk of HVM direct kernel boot patch
Date: Fri, 28 Nov 2014 12:01:23 +0000 [thread overview]
Message-ID: <1417176083.23604.20.camel@citrix.com> (raw)
In-Reply-To: <1417154122-23669-1-git-send-email-cyliu@suse.com>
On Fri, 2014-11-28 at 13:55 +0800, Chunyan Liu wrote:
> Found by Stefano, this chunk of the patch was never applied to
> xen-unstable (commit 11dffa2359e8a2629490c14c029c7c7c777b3e47),
> see http://marc.info/?l=qemu-devel&m=140471493425353&w=2.
How strange, "git am" usually makes it pretty difficult to miss hunks.
Sorry about this.
> Signed-off-by: Chunyan Liu <cyliu@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
I'm afraid that despite the circumstances this still needs a release ack
from Konrad. Obviously the upside is fixing a partially implemented
feature, but I'm not sure what the downsides are.
Has this been tested with stubdoms, including when this feature is not
used? My biggest concern is that because this function is also used to
build the command line for the stubdom and the stubdom is PV and hence
has at least a ->kernel setting then this new code might break that use
case, by adding these options when they are not wanted. This path is all
a bit tangled so I'm not 100% sure if those fields are actually set or
not.
> ---
> tools/libxl/libxl_dm.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index 3e191c3..b25b574 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -527,6 +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)
> + 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->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:[~2014-11-28 12:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 5:55 [PATCH] missing chunk of HVM direct kernel boot patch Chunyan Liu
2014-11-28 10:22 ` Stefano Stabellini
2014-11-28 12:01 ` Ian Campbell [this message]
2014-12-01 8:21 ` 答复: " Chun Yan Liu
2014-12-01 9:21 ` Ian Campbell
2014-12-01 21:51 ` Konrad Rzeszutek Wilk
2014-12-02 15:35 ` Ian Campbell
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=1417176083.23604.20.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=cyliu@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=stefano.stabellini@eu.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.