libxl: Handle deprecation of QEMU's -usbdevice
PATCH 1/1 libxl: Handle deprecation of QEMU's -usbdevice
-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.
--- docs/man/xl.cfg.pod.5.in | 3 -- tools/libxl/libxl_dm.c | 66 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-)
docs/man/xl.cfg.pod.5.in +0 -3
@@ -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. - =item B<vendor_device="VENDOR_DEVICE"> Selects which variant of the QEMU xen-pvdevice should be used for this
tools/libxl/libxl_dm.c +61 -5
83 lines not on this page · raw message
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 21 lines · Anthony PERARD
-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 <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 -- tools/libxl/libxl_dm.c | 66 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +0
-0
docs/man/xl.cfg.pod.5.in write "host:8.2". · line 2473
Quoted 6 lines
docs/man/xl.cfg.pod.5.in +0
-3@@ -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)?
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 (?).
How does libvirt handle QEMU option deprecation?
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 23 lines · Wei Liu
Quoted 22 lines · Anthony PERARD
-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 <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 -- tools/libxl/libxl_dm.c | 66 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +0
-0@@ -2468,9 +2468,6 @@ write "host:8.2".
Quoted 8 lines
docs/man/xl.cfg.pod.5.in write "host:8.2". · line 2473
Quoted 5 lines
docs/man/xl.cfg.pod.5.in +0
-3The 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.
Quoted 3 lines
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_argsor 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.
Quoted 1 line
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,
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 43 lines · Anthony PERARD
Quoted 23 lines · Wei Liu
Quoted 22 lines · Anthony PERARD
-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 <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 -- tools/libxl/libxl_dm.c | 66 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +0
-0@@ -2468,9 +2468,6 @@ write "host:8.2".Quoted 8 lines
docs/man/xl.cfg.pod.5.in write "host:8.2". · line 2473
Quoted 5 lines
docs/man/xl.cfg.pod.5.in +0
-3The 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.
Quoted 8 lines
Quoted 3 lines
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_argsor something else (?)."something else" could be send a msg to xen-devel, so that we can add support for it,
extra_argsis a nice work around, at least, user should know that the options might break if qemu change.
This is fair enough.
Quoted 3 lines
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
I think this is the mostly sustainable way going forward.
Quoted 8 lines
As for what to do to tell the users to use the kitchen sink, I have no idea.
Quoted 1 line
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).
How do they fix this sort of things? Do they reject removed options or try (as best effort) to translate?
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 10 lines · Wei Liu
Quoted 6 lines · Anthony PERARD
Quoted 1 line · Wei Liu
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).
How do they fix this sort of things? Do they reject removed options or try (as best effort) to translate?
I don't think those questions make senses. What "sort of things" ? Which "options", qemu command line/qmp options or user facing options?
In anycase, I don't think I know enough about libvirt (even as a user) to be able to respond to those questions, but they would probably not have exposed -usbdevice to users, like we do.
Signature · 6 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel