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: check HVM direct boot parameters
Date: Mon, 19 Jan 2015 15:37:43 +0000 [thread overview]
Message-ID: <1421681863.10440.114.camel@citrix.com> (raw)
In-Reply-To: <20150115160140.GC3945@zion.uk.xensource.com>
On Thu, 2015-01-15 at 16:01 +0000, Wei Liu wrote:
> On Thu, Jan 15, 2015 at 03:11:42PM +0000, Wei Liu wrote:
> > We should honour -initrd and -append iff -kernel is specified, because
> > that's how QEMU works.
> >
> > Check direct boot parameters in libxl__domain_build_info_setdefault.
> > Return failure if kernel is missing while ramdisk (-initrd) and / or
> > cmdline (-append) is present.
> >
> > 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_create.c | 9 +++++++++
> > 1 file changed, 9 insertions(+)
> >
> > diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c
> > index 1198225..31f681e 100644
> > --- a/tools/libxl/libxl_create.c
> > +++ b/tools/libxl/libxl_create.c
> > @@ -170,6 +170,15 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc,
> > break;
> > default:abort();
> > }
> > +
> > + /* Check HVM direct boot parameters, we should honour ->ramdisk and
> > + * ->cmdline iff ->kernel is set.
> > + */
> > + if (!b_info->kernel && (b_info->ramdisk || b_info->cmdline)) {
> > + LIBXL__LOG(CTX, XLT_ERROR,
> > + "direct boot parameters specified but kernel is missing");
>
> Hmm... There's a formatting error. I can resend if it's necessary.
In trying to correctly indent this line while committing I pushed it
over 80-columns, rather than my rewrapping more, could you make this use
the LOG helper please, and thereby pull everything in a bit?
With that done:
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Ian.
prev parent reply other threads:[~2015-01-19 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 15:11 [PATCH] libxl: check HVM direct boot parameters Wei Liu
2015-01-15 16:01 ` Wei Liu
2015-01-19 15:37 ` Ian Campbell [this message]
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=1421681863.10440.114.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.