libvirt/virHostdevFindUSBDevice-privsyms.patch
James Fehlig a278eea708 Accepting request 424555 from home:jfehlig:branches:Virtualization
- Update to libvirt 2.2.0
  - Many incremental improvements and bug fixes, see
    http://libvirt.org/news.html
  - Dropped patches:
    856965b3-qemu-secdriver.patch,
    541e9ae6-cpu-vendor-crash-fix.patch,
    d53d4650-qemu-rbd-auth.patch

OBS-URL: https://build.opensuse.org/request/show/424555
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=565
2016-09-03 01:58:32 +00:00

52 lines
1.8 KiB
Diff

commit e05e2dba970d3f4b5ec9bed80a7f0bb4ccc43dc8
Author: Cédric Bosdonnat <cbosdonnat@suse.com>
Date: Fri Aug 5 09:10:49 2016 +0200
Add virHostdevFindUSBDevice to private symbols
Finding an USB device from the vendor/device values will be needed
by libxl driver to convert from vendor/device to bus/dev addresses.
Index: libvirt-2.2.0/src/libvirt_private.syms
===================================================================
--- libvirt-2.2.0.orig/src/libvirt_private.syms
+++ libvirt-2.2.0/src/libvirt_private.syms
@@ -1648,6 +1648,7 @@ virHookPresent;
# util/virhostdev.h
+virHostdevFindUSBDevice;
virHostdevManagerGetDefault;
virHostdevPCINodeDeviceDetach;
virHostdevPCINodeDeviceReAttach;
Index: libvirt-2.2.0/src/util/virhostdev.c
===================================================================
--- libvirt-2.2.0.orig/src/util/virhostdev.c
+++ libvirt-2.2.0/src/util/virhostdev.c
@@ -1178,7 +1178,7 @@ virHostdevMarkUSBDevices(virHostdevManag
}
-static int
+int
virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev,
bool mandatory,
virUSBDevicePtr *usb)
Index: libvirt-2.2.0/src/util/virhostdev.h
===================================================================
--- libvirt-2.2.0.orig/src/util/virhostdev.h
+++ libvirt-2.2.0/src/util/virhostdev.h
@@ -66,6 +66,12 @@ virHostdevPreparePCIDevices(virHostdevMa
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3)
ATTRIBUTE_NONNULL(4);
+
+int
+virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev,
+ bool mandatory,
+ virUSBDevicePtr *usb)
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
int
virHostdevPrepareUSBDevices(virHostdevManagerPtr hostdev_mgr,
const char *drv_name,