mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-27 05:42:21 +00:00
rename qemuGet*PciHostDeviceList to virHostdevGet*PciHostDeviceList
This commit is contained in:
parent
5a4f783608
commit
4a3bc4902d
@ -42,7 +42,7 @@
|
||||
#define VIR_FROM_THIS VIR_FROM_QEMU
|
||||
|
||||
static virPCIDeviceListPtr
|
||||
qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
|
||||
virHostdevGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
|
||||
{
|
||||
virPCIDeviceListPtr list;
|
||||
size_t i;
|
||||
@ -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
|
||||
* list *and* is in the hostdev list for this domain.
|
||||
*
|
||||
@ -103,7 +103,7 @@ qemuGetPciHostDeviceList(virDomainHostdevDefPtr *hostdevs, int nhostdevs)
|
||||
* Pre-condition: activePciHostdevs is locked
|
||||
*/
|
||||
static virPCIDeviceListPtr
|
||||
qemuGetActivePciHostDeviceList(virHostdevManagerPtr mgr,
|
||||
virHostdevGetActivePciHostDeviceList(virHostdevManagerPtr mgr,
|
||||
virDomainHostdevDefPtr *hostdevs,
|
||||
int nhostdevs)
|
||||
{
|
||||
@ -673,7 +673,7 @@ virHostdevPreparePCIDevices(virHostdevManagerPtr hostdev_mgr,
|
||||
virObjectLock(hostdev_mgr->activePciHostdevs);
|
||||
virObjectLock(hostdev_mgr->inactivePciHostdevs);
|
||||
|
||||
if (!(pcidevs = qemuGetPciHostDeviceList(hostdevs, nhostdevs)))
|
||||
if (!(pcidevs = virHostdevGetPciHostDeviceList(hostdevs, nhostdevs)))
|
||||
goto cleanup;
|
||||
|
||||
/* We have to use 9 loops here. *All* devices must
|
||||
@ -1297,7 +1297,7 @@ qemuDomainReAttachHostdevDevices(virQEMUDriverPtr driver,
|
||||
virObjectLock(hostdev_mgr->activePciHostdevs);
|
||||
virObjectLock(hostdev_mgr->inactivePciHostdevs);
|
||||
|
||||
if (!(pcidevs = qemuGetActivePciHostDeviceList(hostdev_mgr,
|
||||
if (!(pcidevs = virHostdevGetActivePciHostDeviceList(hostdev_mgr,
|
||||
hostdevs,
|
||||
nhostdevs))) {
|
||||
virErrorPtr err = virGetLastError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user