27f2ad74e2
- libxl: allow vendor/product addressing for USB hostdevs virHostdevFindUSBDevice-privsyms.patch, libxl-usb-vendor.patch bsc#989646 - qemu: fix auth for rbd network disks d53d4650-qemu-rbd-auth.patch bsc#988998 - Replace cpumodel-vendor-crash-fix.patch with upstream variant 541e9ae6-cpu-vendor-crash-fix.patch bsc#992425 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=563
52 lines
1.8 KiB
Diff
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.1.0/src/libvirt_private.syms
|
|
===================================================================
|
|
--- libvirt-2.1.0.orig/src/libvirt_private.syms
|
|
+++ libvirt-2.1.0/src/libvirt_private.syms
|
|
@@ -1641,6 +1641,7 @@ virHookPresent;
|
|
|
|
|
|
# util/virhostdev.h
|
|
+virHostdevFindUSBDevice;
|
|
virHostdevManagerGetDefault;
|
|
virHostdevPCINodeDeviceDetach;
|
|
virHostdevPCINodeDeviceReAttach;
|
|
Index: libvirt-2.1.0/src/util/virhostdev.c
|
|
===================================================================
|
|
--- libvirt-2.1.0.orig/src/util/virhostdev.c
|
|
+++ libvirt-2.1.0/src/util/virhostdev.c
|
|
@@ -1178,7 +1178,7 @@ virHostdevMarkUSBDevices(virHostdevManag
|
|
}
|
|
|
|
|
|
-static int
|
|
+int
|
|
virHostdevFindUSBDevice(virDomainHostdevDefPtr hostdev,
|
|
bool mandatory,
|
|
virUSBDevicePtr *usb)
|
|
Index: libvirt-2.1.0/src/util/virhostdev.h
|
|
===================================================================
|
|
--- libvirt-2.1.0.orig/src/util/virhostdev.h
|
|
+++ libvirt-2.1.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,
|