All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: George Dunlap <george.dunlap@citrix.com>
Cc: Juergen Gross <jgross@suse.com>, Wei Liu <wei.liu2@citrix.com>,
	stefano.stabellini@eu.citrix.com, George.Dunlap@eu.citrix.com,
	ian.jackson@eu.citrix.com, cyliu@suse.com,
	xen-devel@lists.xen.org,
	Anthony PERARD <anthony.perard@citrix.com>
Subject: Re: [PATCH v5 2/5] libxl: add query function for backend support by device model
Date: Wed, 30 Mar 2016 15:27:28 +0100	[thread overview]
Message-ID: <20160330142728.GG5656@citrix.com> (raw)
In-Reply-To: <56FBDE65.3040606@citrix.com>

On Wed, Mar 30, 2016 at 03:10:45PM +0100, George Dunlap wrote:
> On 30/03/16 14:53, Wei Liu wrote:
> > On Wed, Mar 30, 2016 at 02:05:55PM +0200, Juergen Gross wrote:
> >> Add a function to query whether the device model is supporting a
> >> specific backend type. The device model is writing the supported
> >> backend types to Xenstore on startup. The new query function checks
> >> for the appropriate entry to be present.
> >>
> >> As not all versions of qemu are capable to indicate support of
> >> specific backends the query function is to be called with an indicator
> >> whether the default return value should be "supported" (in case qemu
> >> doesn't know set any support information) or "not supported".
> >>
> >> Signed-off-by: Juergen Gross <jgross@suse.com>
> > 
> > The code itself looks straightforward enough.
> > 
> > But note that this is a new protocol that needs to be supported
> > essentially forever. I've CC QEMU maintainers for their input.
> 
> FWIW, libxl only needs to support this forever if qemu ever actually
> provides it.  If no version of qemu ever ships with this check, then we
> can't break anything by removing it.
> 

That's true. But the code is actually not very relevant, I think the
protocol shall be written down somewhere in a canonical document --
that's something that we can't easily revert -- unless we don't document
it, then I'm not sure what state should this feature be in or how do we
advertise it in our release note.

Wei.

> This is what I was saying in my other comment -- we could just check
> this in, and back out the whole series if the qemu side gets NACK'ed.
> Even if we release with this, there's no real harm done, as the qusb
> code will simply never be activated.
> 
> > This also means even if we get this in for 4.7 we can't essentially
> > benefit from it until this protocol is implemented in upstream QEMU. At
> > this point I don't think I would take this particular patch for 4.7.
> 
> qemu has a faster release cycle than us, right?  If we have support in
> principle for this approach, people who want qusb support can always use
> a newer qemu release.
> 
> OTOH, if we check this in then the qemu folks can either take this exact
> approach, or something completely incompatible -- they can't make minor
> modifications.
> 
>  -George

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-03-30 14:27 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 12:05 [PATCH v5 0/5] libxl: add support for qemu base pvusb backend Juergen Gross
2016-03-30 12:05 ` [PATCH v5 1/5] libxl: make libxl__need_xenpv_qemu() operate on domain config Juergen Gross
2016-03-30 13:38   ` Wei Liu
2016-03-30 14:02     ` Juergen Gross
2016-03-30 12:05 ` [PATCH v5 2/5] libxl: add query function for backend support by device model Juergen Gross
2016-03-30 13:44   ` George Dunlap
2016-03-30 13:59     ` Juergen Gross
2016-03-30 13:53   ` Wei Liu
2016-03-30 14:02     ` Juergen Gross
2016-03-30 14:09       ` Wei Liu
2016-03-30 14:11         ` Juergen Gross
2016-03-30 14:26           ` Wei Liu
2016-03-30 15:55             ` Anthony PERARD
2016-03-30 15:59               ` Wei Liu
2016-03-30 16:07                 ` Anthony PERARD
2016-03-30 14:10     ` George Dunlap
2016-03-30 14:27       ` Wei Liu [this message]
2016-03-30 12:05 ` [PATCH v5 3/5] libxl: add new pvusb backend "qusb" provided by qemu Juergen Gross
2016-03-30 14:19   ` Wei Liu
2016-03-30 14:34     ` Juergen Gross
2016-03-30 14:38       ` Wei Liu
2016-03-30 16:16       ` Wei Liu
2016-03-30 17:09         ` Juergen Gross
2016-03-30 12:05 ` [PATCH v5 4/5] libxl: add service function to check whether device model is running Juergen Gross
2016-03-30 12:05 ` [PATCH v5 5/5] libxl: check for dynamic device model start required Juergen Gross

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=20160330142728.GG5656@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=cyliu@suse.com \
    --cc=george.dunlap@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.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.