80e28a00ec
- unmodified_drivers: handle IRQF_SAMPLE_RANDOM, it was removed in 3.6-rc1 - bnc#778105 - first XEN-PV VM fails to spawn xend: Increase wait time for disk to appear in host bootloader Modified existing xen-domUloader.diff - Disable the snapshot patches. Snapshot only supported the qcow2 image format which was poorly implemented qemu 0.10.2. Snapshot support may be restored in the future when the newer upstream qemu is used by Xen. - bnc#776995 - attaching scsi control luns with pvscsi - xend/pvscsi: fix passing of SCSI control LUNs xen-bug776995-pvscsi-no-devname.patch - xend/pvscsi: fix usage of persistant device names for SCSI devices xen-bug776995-pvscsi-persistent-names.patch - xend/pvscsi: update sysfs parser for Linux 3.0 xen-bug776995-pvscsi-sysfs-parser.patch - Update to Xen 4.2.0 RC3+ c/s 25779 - Update to Xen 4.2.0 RC2+ c/s 25765 OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=199
46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
"usb-hc-create" does not check usb-ver parameter. It allows 2/2.0/2.0usb/2.0aaa. While low level
|
|
driver doing hc create, it gets an integer by vssanf %d from usb-ver string, so there is no problem.
|
|
But 2/2.0/2.0usb/2.0aaa will be saved into VM config.
|
|
|
|
After that, while doing "usb-list", it cannot handle "2.0/2.0usb/2.0aaa" and will cause error:
|
|
Idx BE state usb-ver BE-path
|
|
Error: Invalid argument.
|
|
Usage: xm usb-list <Domain>
|
|
|
|
This patch is to let "usb-list" handle all usb-ver cases as low level driver does and won't cause error.
|
|
|
|
About this problem, I've submitted two patches to upstream before, but got no response. Information
|
|
could be referred to:
|
|
http://www.gossamer-threads.com/lists/xen/devel/178406?search_string=usb-list;#178406
|
|
http://www.gossamer-threads.com/lists/xen/devel/181021?search_string=usb-list;#181021
|
|
|
|
|
|
Index: xen-4.2.0-testing/tools/python/xen/xm/main.py
|
|
===================================================================
|
|
--- xen-4.2.0-testing.orig/tools/python/xen/xm/main.py
|
|
+++ xen-4.2.0-testing/tools/python/xen/xm/main.py
|
|
@@ -2629,10 +2629,22 @@ def xm_usb_list(args):
|
|
ni = parse_dev_info(x[1])
|
|
ni['idx'] = int(x[0])
|
|
usbver = sxp.child_value(x[1], 'usb-ver')
|
|
+
|
|
+ substr = re.search("^\d{1,}", usbver)
|
|
+ if substr:
|
|
+ usbver = substr.group()
|
|
+ else:
|
|
+ print "Unknown usb-ver"
|
|
+ continue
|
|
+
|
|
if int(usbver) == 1:
|
|
ni['usb-ver'] = 'USB1.1'
|
|
- else:
|
|
+ elif int(usbver) == 2:
|
|
ni['usb-ver'] = 'USB2.0'
|
|
+ else:
|
|
+ print "Unknown usb-ver"
|
|
+ continue
|
|
+
|
|
print "%(idx)-3d %(backend-id)-3d %(state)-5d %(usb-ver)-7s %(be-path)-30s " % ni
|
|
|
|
ports = sxp.child(x[1], 'port')
|