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

On Tue, Apr 22, 2014 at 04:50:56PM +0100, Ian Campbell wrote:
> On Tue, 2014-04-22 at 16:19 +0100, Wei Liu wrote:
> > Hi all
> > 
> > When I'm working on (de-)serialization of domain configurations I found
> > "vncviewer". I now propose to deprecate it.
> > 
> > What it does is that if you have it set in your domain's config file and
> > do "xl create cfg", xl will automatically spawn a vncviewer for you.
> > This option actually controls the creation process of a domain but has
> > nothing to do with domain configuration at all.
> > 
> > This option is buggy because it's also saved as part of domain state
> > when you do save / restore.
> 
> Where is it saved?
> 

The domain config file is saved, then used when restoring. Restoring
process involves re-parsing that config file.

> >  Consider user migrates a domain to a remote
> > host, xl will try to auto-spawn vncviewer on the new host. This behavior
> > doesn't make sense at all.
> > 
> > Further more it becomes an obstacle for the work to (de-)serialization
> > domain configurations. If we want to preserve this option we then need
> > to create abstraction for a config file in xl or libxl. This either
> > introduces lots of work without much benefit (if we add out-of-band
> > infomation in xl) or pollute libxl public interface.
> > 
> > I propose to deprecate this option.
> > 
> > What I will do is:
> > 1. config file still supports this option but it will prints out a
> >    warning about its deprecation.
> > 2. this option is not saved as domain state when doing save / restore,
> >    so when you restore a domain xl will not auto-spawn vncviewer.
> > 
> > This may create a minor regression, but it's in no way critical. In
> > any case the right way to auto-spawn vncviewer is to use "-V" in "xl
> > create". And existing user of this config file option can also use "-V"
> > to work around this regression.
> > 
> > Comments?
> 
> 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

Wei.

> Ian.
> 

  reply	other threads:[~2014-04-22 16:07 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 [this message]
2014-04-22 16:32     ` Ian Jackson
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=20140422160735.GQ7712@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@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.