libvirt/src/util
Daniel P. Berrange 09ed07293f Fix USB passthrough based on product/vendor
Changeset

  commit 5073aa994a
  Author: Cole Robinson <crobinso@redhat.com>
  Date:   Mon Jan 11 11:40:46 2010 -0500

Added support for product/vendor based passthrough, but it only
worked at the security driver layer. The main guest XML config
was not updated with the resolved bus/device ID. When the QEMU
argv refactoring removed use of product/vendor, this then broke
launching guests.

THe solution is to move the product/vendor resolution up a layer
into the QEMU driver. So the first thing QEMU does is resolve
the product/vendor to a bus/device and updates the XML config
with this info. The rest of the code, including security drivers
and QEMU argv generated can now rely on bus/device always being
set.

* src/util/hostusb.c, src/util/hostusb.h: Split vendor/product
  resolution code out of usbGetDevice and into usbFindDevice.
  Add accessors for bus/device ID
* src/security/virt-aa-helper.c, src/security/security_selinux.c,
  src/qemu/qemu_security_dac.c: Remove vendor/product from the
  usbGetDevice() calls
* src/qemu/qemu_driver.c: Use usbFindDevice to resolve vendor/product
  into a bus/device ID
2010-03-05 15:05:14 +00:00
..
bridge.c Remove conn parameter from util functions 2010-02-09 01:04:54 +01:00
bridge.h
buf.c virBufferVSprintf: do not omit va_end(argptr) call 2010-02-19 18:32:23 +01:00
buf.h Add virBufferFreeAndReset() and replace free() 2009-12-10 00:00:50 +01:00
cgroup.c Avoid creating top level cgroups if just querying for existance 2010-03-05 15:00:58 +00:00
cgroup.h LXC implement memory control APIs 2009-10-07 15:26:23 +02:00
conf.c Remove conn parameter from virReportOOMError 2010-02-09 01:04:54 +01:00
conf.h
ebtables.c Remove conn parameter from util functions 2010-02-09 01:04:54 +01:00
ebtables.h New ebtables module wrapper 2009-11-03 23:44:48 +01:00
event.c
event.h
hash.c Fix up a comment in virHashUpdateEntry 2010-02-01 09:39:54 -05:00
hash.h Remove bogus const annotations to hash iterator 2009-10-19 16:24:12 +01:00
hostusb.c Fix USB passthrough based on product/vendor 2010-03-05 15:05:14 +00:00
hostusb.h Fix USB passthrough based on product/vendor 2010-03-05 15:05:14 +00:00
iptables.c Remove conn parameter from util functions 2010-02-09 01:04:54 +01:00
iptables.h remove iptablesReloadRules() and related code 2009-12-10 11:27:18 +00:00
json.c Remove conn parameter from JSON error macro 2010-02-09 01:04:55 +01:00
json.h Misc fixes to QMP monitor support for QEMU 2010-01-25 17:08:37 +00:00
logging.c Fix log locking problem when using fork() in the library 2010-02-03 17:12:57 +01:00
logging.h Fix log locking problem when using fork() in the library 2010-02-03 17:12:57 +01:00
macvtap.c macvtap IFF_VNET_HDR configuration 2010-02-19 11:38:57 +01:00
macvtap.h macvtap IFF_VNET_HDR configuration 2010-02-19 11:38:57 +01:00
memory.c
memory.h
network.c Avoid an type-punned pointer aliasing pbm 2009-12-08 15:01:57 +01:00
network.h Remove undefined symbols from libvirt_private.syms 2009-12-23 14:57:07 +01:00
pci.c Make an error message in PCI util code clearer 2010-02-19 16:04:35 +01:00
pci.h Remove virConnectPtr from USB/PCI device iterators 2010-02-10 13:29:57 +00:00
processinfo.c Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
processinfo.h Pull schedular affinity code out into a separate module 2009-11-23 11:58:13 +00:00
qparams.c qparams.c: do not skip va_end, twice 2010-02-19 11:52:04 +01:00
qparams.h Add sentinel attribute for NULL terminated arg lists 2009-11-06 10:39:13 +01:00
stats_linux.c Remove conn parameter from Linux stats functions 2010-02-09 01:04:55 +01:00
stats_linux.h Remove conn parameter from Linux stats functions 2010-02-09 01:04:55 +01:00
storage_file.c virAsprintf: remove its warn_unused_result attribute 2010-02-10 12:30:13 +01:00
storage_file.h Remove conn parameter from storage file functions 2010-02-09 01:04:55 +01:00
threads-pthread.c Add a new timed condition variable wait API 2009-11-10 11:59:17 +00:00
threads-pthread.h
threads-win32.c
threads-win32.h
threads.c
threads.h Add a new timed condition variable wait API 2009-11-10 11:59:17 +00:00
util.c Fix safezero() 2010-03-02 18:16:32 +01:00
util.h Rename virFileCreate to virFileOperation, add hook function 2010-02-19 17:43:22 +01:00
uuid.c Allow surrounding whitespace in uuid 2010-01-21 15:32:37 +01:00
uuid.h
virterror_internal.h Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
virterror.c virterror: Make SetError work if no previous error was set 2010-02-18 09:23:04 -05:00
xml.c Add new clock mode allowing variable adjustments 2010-03-01 18:36:01 +00:00
xml.h Add new clock mode allowing variable adjustments 2010-03-01 18:36:01 +00:00