提交 4a3bc490 编写于 作者: C Chunyan Liu 提交者: Daniel P. Berrange

rename qemuGet*PciHostDeviceList to virHostdevGet*PciHostDeviceList

上级 5a4f7836
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#define VIR_FROM_THIS VIR_FROM_QEMU #define VIR_FROM_THIS VIR_FROM_QEMU
static virPCIDeviceListPtr static virPCIDeviceListPtr
qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs) virHostdevGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
{ {
virPCIDeviceListPtr list; virPCIDeviceListPtr list;
size_t i; size_t i;
...@@ -94,7 +94,7 @@ qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs) ...@@ -94,7 +94,7 @@ qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
/* /*
* qemuGetActivePciHostDeviceList - make a new list with a *copy* of * virHostdevGetActivePciHostDeviceList - make a new list with a *copy* of
* every virPCIDevice object that is found on the activePciHostdevs * every virPCIDevice object that is found on the activePciHostdevs
* list *and* is in the hostdev list for this domain. * list *and* is in the hostdev list for this domain.
* *
...@@ -103,9 +103,9 @@ qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs) ...@@ -103,9 +103,9 @@ qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
* Pre-condition: activePciHostdevs is locked * Pre-condition: activePciHostdevs is locked
*/ */
static virPCIDeviceListPtr static virPCIDeviceListPtr
qemuGetActivePciHostDeviceList(virHostdevManagerPtr mgr, virHostdevGetActivePciHostDeviceList(virHostdevManagerPtr mgr,
virDomainHostdevDefPtr *hostdevs, virDomainHostdevDefPtr *hostdevs,
int nhostdevs) int nhostdevs)
{ {
virPCIDeviceListPtr list; virPCIDeviceListPtr list;
size_t i; size_t i;
...@@ -673,7 +673,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr, ...@@ -673,7 +673,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
virObjectLock(hostdev_mgr->activePciHostdevs); virObjectLock(hostdev_mgr->activePciHostdevs);
virObjectLock(hostdev_mgr->inactivePciHostdevs); virObjectLock(hostdev_mgr->inactivePciHostdevs);
if (!(pcidevs = qemuGetPciHostDeviceList(hostdevs, nhostdevs))) if (!(pcidevs = virHostdevGetPciHostDeviceList(hostdevs, nhostdevs)))
goto cleanup; goto cleanup;
/* We have to use 9 loops here. *All* devices must /* We have to use 9 loops here. *All* devices must
...@@ -1297,9 +1297,9 @@ qemuDomainReAttachHostdevDevices(virQEMUDriverPtr driver, ...@@ -1297,9 +1297,9 @@ qemuDomainReAttachHostdevDevices(virQEMUDriverPtr driver,
virObjectLock(hostdev_mgr->activePciHostdevs); virObjectLock(hostdev_mgr->activePciHostdevs);
virObjectLock(hostdev_mgr->inactivePciHostdevs); virObjectLock(hostdev_mgr->inactivePciHostdevs);
if (!(pcidevs = qemuGetActivePciHostDeviceList(hostdev_mgr, if (!(pcidevs = virHostdevGetActivePciHostDeviceList(hostdev_mgr,
hostdevs, hostdevs,
nhostdevs))) { nhostdevs))) {
virErrorPtr err = virGetLastError(); virErrorPtr err = virGetLastError();
VIR_ERROR(_("Failed to allocate PCI device list: %s"), VIR_ERROR(_("Failed to allocate PCI device list: %s"),
err ? err->message : _("unknown error")); err ? err->message : _("unknown error"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册