From: Anthony PERARD <anthony.perard@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel@lists.xenproject.org, Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH] libxl: Handle deprecation of QEMU's -usbdevice
Date: Wed, 25 Jul 2018 11:43:29 +0100 [thread overview]
Message-ID: <20180725104329.GF2296@perard.uk.xensource.com> (raw)
In-Reply-To: <20180725083820.2cbdejqibyvu2q7a@citrix.com>
On Wed, Jul 25, 2018 at 09:38:20AM +0100, Wei Liu wrote:
> On Thu, Jul 19, 2018 at 06:29:29PM +0100, Anthony PERARD wrote:
> > -usbdevice is deprecated as of QEMU 2.10.
> >
> > This patch replace the few options documented in xl.cfg(5) by the
> > recommanded syntax. And if the option isn't recognize, simply use
> > -usbdevice with a warning, the options isn't entirely removed from QEMU
> > upstream.
> >
> > Also, remove from the manual the sentence inviting to read QEMU's
> > documentation.
> >
> > Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> > ---
> > docs/man/xl.cfg.pod.5.in | 3 --
> > tools/libxl/libxl_dm.c | 66 +++++++++++++++++++++++++++++++++++++---
> > 2 files changed, 61 insertions(+), 8 deletions(-)
> >
> > diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5.in
> > index 099a28dc7a..74375e0225 100644
> > --- a/docs/man/xl.cfg.pod.5.in
> > +++ b/docs/man/xl.cfg.pod.5.in
> > @@ -2468,9 +2468,6 @@ write "host:8.2".
> >
> > The form usbdevice=DEVICE is also accepted for backwards compatibility.
> >
> > -More valid options can be found in the "usbdevice" section of the QEMU
> > -documentation.
> > -
>
> Does this mean we intend to only support the options listed in
> xl.cfg(5)?
I have no idea which options are supported. I can leave that extra
sentence in the manual, as the meaning change over time, outside of our
control. Right know, on my machine, in `man qemu`, it means
mouse/tablet/braille + it is deprecated.
Having a look into SUPPORT.md, I should also parse "mouse", as both
usbmouse and usbtablet are supported. There is also "Host USB
passthrough" for which support as been removed upstream. That's it,
nothing else is supported according to the document.
> If so, I think we should make clear here -- this is a regression. And
> tell users if they have appended their own options they should take
> actions, like using device_model_extra_args or something else (?).
"something else" could be send a msg to xen-devel, so that we can add
support for it, extra_args is a nice work around, at least, user should
know that the options might break if qemu change.
Also, you said we could parse few know options and reject the rest:
https://lists.xenproject.org/archives/html/xen-devel/2018-03/msg02770.html
As for what to do to tell the users to use the kitchen sink, I have no
idea.
> How does libvirt handle QEMU option deprecation?
I don't think they handle it very well. I think it's basicaly when the
deprecated option is removed from QEMU that they notice libvirt need to
be fixed (That's what I got from reading a thread on qemu-devel).
Thanks,
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-07-25 10:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 17:29 [PATCH] libxl: Handle deprecation of QEMU's -usbdevice Anthony PERARD
2018-07-25 8:38 ` Wei Liu
2018-07-25 10:43 ` Anthony PERARD [this message]
2018-08-20 14:32 ` Wei Liu
2018-08-20 14:58 ` Anthony PERARD
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=20180725104329.GF2296@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).