rename qemuReAttachPciDevice to virHostdevReAttachPciDevice

Signed-off-by: Chunyan Liu <cyliu@suse.com>
This commit is contained in:
Daniel P. Berrange 2014-03-12 15:51:31 +00:00
parent 82e8dd4cf8
commit 63d4dd0336

View File

@ -1254,7 +1254,7 @@ qemuPrepareHostDevices(virQEMUDriverPtr driver,
* are locked
*/
static void
qemuReattachPciDevice(virPCIDevicePtr dev, virHostdevManagerPtr mgr)
virHostdevReattachPciDevice(virPCIDevicePtr dev, virHostdevManagerPtr mgr)
{
/* If the device is not managed and was attached to guest
* successfully, it must have been inactive.
@ -1365,7 +1365,7 @@ virHostdevReAttachPCIDevices(virHostdevManagerPtr hostdev_mgr,
while (virPCIDeviceListCount(pcidevs) > 0) {
virPCIDevicePtr dev = virPCIDeviceListStealIndex(pcidevs, 0);
qemuReattachPciDevice(dev, hostdev_mgr);
virHostdevReattachPciDevice(dev, hostdev_mgr);
}
virObjectUnref(pcidevs);