All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <Ian.Jackson@eu.citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>, xen-devel@lists.xen.org
Subject: Re: Proposal: deprecate "vncviewer" option in xl domain config file
Date: Tue, 22 Apr 2014 17:32:45 +0100	[thread overview]
Message-ID: <21334.39341.499762.731409@mariner.uk.xensource.com> (raw)
In-Reply-To: <20140422160735.GQ7712@zion.uk.xensource.com>

Wei Liu writes ("Re: Proposal: deprecate "vncviewer" option in xl domain config file"):
> On Tue, Apr 22, 2014 at 04:50:56PM +0100, Ian Campbell wrote:
> > Where is it saved?
> 
> The domain config file is saved, then used when restoring. Restoring
> process involves re-parsing that config file.

Ie the domain configuration file provided to xl create is saved in the
libxl userdata.  During xl save, that domain configuration file is
recorded in the save image.  During xl restore, it is extracted from
the save image and reparsed.  If the original configuration file
contained "vncviewer=1", this will result in xl restore running the
vncviewer, regardless of xl restore's command line arguments.

> > Rather than throwing the baby out with the bathwater can't we just say
> > that this option is only obeyed for the initial domain creation and not
> > for any subsequent migration or restore? What would avoid the need to
> > propagate it along with the save/migrate image.
> 
> I think this is just wording issue. My "xl-json" format patch does this
> already.  I'm OK with any approach as long as I don't need to propogate
> it. :-P

Precisely.

Although, I would go further and say that this kind of thing shouldn't
be in the domain config file.  The same config file should be able to
start a domain both with and without automatically running vncviewer.

After all we don't have an xl domain config file option for
automatically running xenconsole - we rely, only, on the -c option for
that.

Ian.

  reply	other threads:[~2014-04-22 16:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 15:19 Proposal: deprecate "vncviewer" option in xl domain config file Wei Liu
2014-04-22 15:49 ` Ian Jackson
2014-04-22 15:50 ` Ian Campbell
2014-04-22 16:07   ` Wei Liu
2014-04-22 16:32     ` Ian Jackson [this message]
2014-04-23  8:38       ` Ian Campbell
2014-04-23  9:13         ` Wei 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=21334.39341.499762.731409@mariner.uk.xensource.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=Ian.Campbell@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.