提交 63d4dd03 编写于 作者: D Daniel P. Berrange

rename qemuReAttachPciDevice to virHostdevReAttachPciDevice

Signed-off-by: NChunyan Liu <cyliu@suse.com>
上级 82e8dd4c
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册