2016-08-21 01:29:36 +02:00
|
|
|
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.
|
|
|
|
|
2016-09-03 03:58:32 +02:00
|
|
|
Index: libvirt-2.2.0/src/libvirt_private.syms
|
2016-08-21 01:29:36 +02:00
|
|
|
===================================================================
|
2016-09-03 03:58:32 +02:00
|
|
|
--- libvirt-2.2.0.orig/src/libvirt_private.syms
|
|
|
|
+++ libvirt-2.2.0/src/libvirt_private.syms
|
|
|
|
@@ -1648,6 +1648,7 @@ virHookPresent;
|
2016-08-21 01:29:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
# util/virhostdev.h
|
|
|
|
+virHostdevFindUSBDevice;
|
|
|
|
virHostdevManagerGetDefault;
|
|
|
|
virHostdevPCINodeDeviceDetach;
|
|
|
|
virHostdevPCINodeDeviceReAttach;
|
2016-09-03 03:58:32 +02:00
|
|
|
Index: libvirt-2.2.0/src/util/virhostdev.c
|
2016-08-21 01:29:36 +02:00
|
|
|
===================================================================
|
2016-09-03 03:58:32 +02:00
|
|
|
--- libvirt-2.2.0.orig/src/util/virhostdev.c
|
|
|
|
+++ libvirt-2.2.0/src/util/virhostdev.c
|
2016-08-21 01:29:36 +02:00
|
|
|
@@ -1178,7 +1178,7 @@ virHostdevMarkUSBDevices(virHostdevManag
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-static int
|
|
|
|
+int
|
|
|
|
virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev,
|
|
|
|
bool mandatory,
|
|
|
|
virUSBDevicePtr *usb)
|
2016-09-03 03:58:32 +02:00
|
|
|
Index: libvirt-2.2.0/src/util/virhostdev.h
|
2016-08-21 01:29:36 +02:00
|
|
|
===================================================================
|
2016-09-03 03:58:32 +02:00
|
|
|
--- libvirt-2.2.0.orig/src/util/virhostdev.h
|
|
|
|
+++ libvirt-2.2.0/src/util/virhostdev.h
|
2016-08-21 01:29:36 +02:00
|
|
|
@@ -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,
|