mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
rename qemuReAttachPciDevice to virHostdevReAttachPciDevice
Signed-off-by: Chunyan Liu <cyliu@suse.com>
This commit is contained in:
parent
82e8dd4cf8
commit
63d4dd0336
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user