virPCIDeviceListStealIndex;
virPCIDeviceNew;
virPCIDeviceReattach;
-virPCIDeviceReattachInit;
virPCIDeviceReset;
virPCIDeviceSetManaged;
virPCIDeviceSetRemoveSlot;
if (virHostdevIsPCINodeDeviceUsed(virPCIDeviceGetAddress(pci), &data))
goto out;
- virPCIDeviceReattachInit(pci);
+ virPCIDeviceSetUnbindFromStub(pci, true);
+ virPCIDeviceSetRemoveSlot(pci, true);
+ virPCIDeviceSetReprobe(pci, true);
if (virPCIDeviceReattach(pci, hostdev_mgr->activePCIHostdevs,
hostdev_mgr->inactivePCIHostdevs) < 0)
*dom_name = dev->used_by_domname;
}
-void virPCIDeviceReattachInit(virPCIDevicePtr pci)
-{
- pci->unbind_from_stub = true;
- pci->remove_slot = true;
- pci->reprobe = true;
-}
-
-
virPCIDeviceListPtr
virPCIDeviceListNew(void)
{
unsigned int virPCIDeviceGetReprobe(virPCIDevicePtr dev);
void virPCIDeviceSetReprobe(virPCIDevice *dev,
bool reprobe);
-void virPCIDeviceReattachInit(virPCIDevice *dev);
virPCIDeviceListPtr virPCIDeviceListNew(void);
if (!dev)
goto cleanup;
- virPCIDeviceReattachInit(dev);
+ virPCIDeviceSetUnbindFromStub(dev, true);
+ virPCIDeviceSetRemoveSlot(dev, true);
+ virPCIDeviceSetReprobe(dev, true);
+
if (virPCIDeviceReattach(dev, NULL, NULL) < 0)
goto cleanup;