[PATCH v14 14/49] pass driver name as a parameter to virHostdevPrepareHostdevPCIDevices

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

 



Signed-off-by: Chunyan Liu <cyliu@xxxxxxxx>
---
 src/qemu/qemu_hostdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_hostdev.c b/src/qemu/qemu_hostdev.c
index ec5e0d5..7f8f93c 100644
--- a/src/qemu/qemu_hostdev.c
+++ b/src/qemu/qemu_hostdev.c
@@ -659,6 +659,7 @@ qemuPrepareHostdevPCICheckSupport(virDomainHostdevDefPtr *hostdevs,
 
 static int
 virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
+                            const char *drv_name,
                             const char *name,
                             const unsigned char *uuid,
                             virDomainHostdevDefPtr *hostdevs,
@@ -780,7 +781,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
         activeDev = virPCIDeviceListFind(hostdev_mgr->activePciHostdevs, dev);
 
         if (activeDev)
-            virPCIDeviceSetUsedBy(activeDev, QEMU_DRIVER_NAME, name);
+            virPCIDeviceSetUsedBy(activeDev, drv_name, name);
     }
 
     /* Loop 8: Now set the original states for hostdev def */
@@ -869,7 +870,8 @@ qemuPrepareHostdevPCIDevices(virQEMUDriverPtr driver,
     if (!qemuPrepareHostdevPCICheckSupport(hostdevs, nhostdevs, qemuCaps))
         goto out;
 
-    ret = virHostdevPreparePCIDevices(hostdev_mgr, name, uuid, hostdevs,
+    ret = virHostdevPreparePCIDevices(hostdev_mgr, QEMU_DRIVER_NAME,
+                                      name, uuid, hostdevs,
                                       nhostdevs, flags);
 out:
     return ret;
-- 
1.9.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]