[PATCH 0/3] Attach USB hostdevs using serial id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Originally posted a year ago:
https://www.redhat.com/archives/libvir-list/2013-June/msg00624.html

Rebased, with tests and nodedev 'implementation' and some nits fixed.

David Waring (2):
  Add serials to USB hostdevs in domain XML
  Add ability to attach host USB devices using serial id

Ján Tomko (1):
  Add USB serials to node device driver

 docs/formatdomain.html.in                          | 22 +++++----
 docs/schemas/domaincommon.rng                      |  8 ++++
 docs/schemas/nodedev.rng                           |  9 ++++
 src/conf/domain_conf.c                             | 31 ++++++++++--
 src/conf/domain_conf.h                             |  1 +
 src/conf/node_device_conf.c                        |  4 ++
 src/conf/node_device_conf.h                        |  1 +
 src/node_device/node_device_hal.c                  |  1 +
 src/node_device/node_device_udev.c                 |  6 +++
 src/util/virhostdev.c                              | 17 +++----
 src/util/virusb.c                                  | 56 +++++++++++++++++++---
 src/util/virusb.h                                  |  2 +
 tests/nodedevschemadata/usb_1_1_5_3.xml            | 11 +++++
 tests/nodedevxml2xmltest.c                         |  1 +
 .../qemuxml2argvdata/qemuxml2argv-usb-hostdev.xml  | 42 ++++++++++++++++
 tests/qemuxml2xmltest.c                            |  2 +
 tests/virusbtest.c                                 | 40 +++++++++++-----
 .../sys_bus_usb/devices/1-1.5.3.1/serial           |  1 +
 .../sys_bus_usb/devices/1-1.5.3.3/serial           |  1 +
 .../sys_bus_usb/devices/1-1.5.5/serial             |  1 +
 .../sys_bus_usb/devices/1-1.5.6/serial             |  1 +
 .../sys_bus_usb/devices/1-1.5/serial               |  1 +
 .../sys_bus_usb/devices/1-1.6/serial               |  1 +
 .../virusbtestdata/sys_bus_usb/devices/1-1/serial  |  1 +
 .../sys_bus_usb/devices/2-1.2/serial               |  1 +
 .../virusbtestdata/sys_bus_usb/devices/2-1/serial  |  1 +
 .../virusbtestdata/sys_bus_usb/devices/usb1/serial |  1 +
 .../virusbtestdata/sys_bus_usb/devices/usb2/serial |  1 +
 .../virusbtestdata/sys_bus_usb/devices/usb3/serial |  1 +
 .../virusbtestdata/sys_bus_usb/devices/usb4/serial |  1 +
 30 files changed, 227 insertions(+), 40 deletions(-)
 create mode 100644 tests/nodedevschemadata/usb_1_1_5_3.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-usb-hostdev.xml
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.3.3/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.5/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5.6/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.5/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1.6/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/1-1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1.2/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/2-1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb1/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb2/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb3/serial
 create mode 100644 tests/virusbtestdata/sys_bus_usb/devices/usb4/serial

-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]