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

[libvirt] [PATCH] Add optional serial id for USB devices in hostdev

From: David Waring <david waring rd bbc co uk>

This patch adds the ability to include a serial element in a hostdev/source
to select a device with a particular serial number. Patch for bugzilla
#914883. This allows specific USB devices to attached to guests when there may
be more than one of the same USB device attached to a host.

The serial number is optional so that without it existing behaviour is

David Waring (1):
  Add ability to attach USB devices to guests using vendor, product and
    serial id.

 docs/formatdomain.html.in   | 21 +++++++++++---------
 src/conf/domain_conf.c      | 18 +++++++++++++++--
 src/conf/domain_conf.h      |  1 +
 src/conf/node_device_conf.c |  5 +++++
 src/conf/node_device_conf.h |  1 +
 src/lxc/lxc_hostdev.c       |  5 +++--
 src/qemu/qemu_hostdev.c     |  5 +++--
 src/util/virusb.c           | 47 +++++++++++++++++++++++++++++++++++++++++----
 src/util/virusb.h           |  2 ++
 9 files changed, 86 insertions(+), 19 deletions(-)


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