[libvirt] [PATCH 8/9] libxl: pass cmdline to HVM guests
Ian Campbell
ian.campbell at citrix.com
Fri Mar 20 17:26:50 UTC 2015
On Fri, 2015-03-20 at 11:18 -0600, Jim Fehlig wrote:
> Marek Marczykowski-Górecki wrote:
> > Signed-off-by: Marek Marczykowski-Górecki <marmarek at invisiblethingslab.com>
> > ---
> > src/libxl/libxl_conf.c | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
> > diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
> > index 8ec3c75..d78d2b2 100644
> > --- a/src/libxl/libxl_conf.c
> > +++ b/src/libxl/libxl_conf.c
> > @@ -735,6 +735,14 @@ libxlMakeDomBuildInfo(virDomainDefPtr def,
> > libxl_defbool_set(&b_info->device_model_stubdomain,
> > def->stubdomain == VIR_TRISTATE_BOOL_YES);
> >
> > + if (def->os.cmdline && def->os.cmdline[0]) {
> > + b_info->extra_hvm = virStringSplit(def->os.cmdline, " ", 0);
> >
>
> What is the difference between b_info->extra_hvm and b_info->cmdline?
According to the comment in libxl_types.idl (i.e. I didn't check the
code) extra_hvm is passed to the qemu (for qemu's own consumption),
cmdline is passed to the guest (used by pv and I suppose by hvm with
direct kernel boot).
Ian.
More information about the libvir-list
mailing list