qemu: hostdev: Unify naming for qemuHostdevUpdateActive*Devices()

Adopt the same names used for virHostdevUpdateActive*Devices() for
consistency's sake and to make it easier to jump between the two.

No functional changes.
This commit is contained in:
Andrea Bolognani 2015-10-20 14:26:30 +02:00
parent 5ab29e369f
commit 8da5cbfc78
3 changed files with 16 additions and 15 deletions

View File

@ -45,8 +45,8 @@ VIR_LOG_INIT("qemu.qemu_hostdev");
int
qemuUpdateActivePCIHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def)
qemuHostdevUpdateActivePCIDevices(virQEMUDriverPtr driver,
virDomainDefPtr def)
{
virHostdevManagerPtr mgr = driver->hostdevMgr;
@ -58,8 +58,8 @@ qemuUpdateActivePCIHostdevs(virQEMUDriverPtr driver,
}
int
qemuUpdateActiveUSBHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def)
qemuHostdevUpdateActiveUSBDevices(virQEMUDriverPtr driver,
virDomainDefPtr def)
{
virHostdevManagerPtr mgr = driver->hostdevMgr;
@ -71,8 +71,8 @@ qemuUpdateActiveUSBHostdevs(virQEMUDriverPtr driver,
}
int
qemuUpdateActiveSCSIHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def)
qemuHostdevUpdateActiveSCSIDevices(virQEMUDriverPtr driver,
virDomainDefPtr def)
{
virHostdevManagerPtr mgr = driver->hostdevMgr;

View File

@ -27,15 +27,16 @@
# include "qemu_conf.h"
# include "domain_conf.h"
int qemuUpdateActivePCIHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def);
int qemuUpdateActiveUSBHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def);
int qemuUpdateActiveSCSIHostdevs(virQEMUDriverPtr driver,
virDomainDefPtr def);
bool qemuHostdevHostSupportsPassthroughLegacy(void);
bool qemuHostdevHostSupportsPassthroughVFIO(void);
int qemuHostdevUpdateActivePCIDevices(virQEMUDriverPtr driver,
virDomainDefPtr def);
int qemuHostdevUpdateActiveUSBDevices(virQEMUDriverPtr driver,
virDomainDefPtr def);
int qemuHostdevUpdateActiveSCSIDevices(virQEMUDriverPtr driver,
virDomainDefPtr def);
int qemuHostdevPreparePCIDevices(virQEMUDriverPtr driver,
const char *name,
const unsigned char *uuid,

View File

@ -3769,13 +3769,13 @@ qemuProcessReconnect(void *opaque)
priv->agentError = true;
}
if (qemuUpdateActivePCIHostdevs(driver, obj->def) < 0)
if (qemuHostdevUpdateActivePCIDevices(driver, obj->def) < 0)
goto error;
if (qemuUpdateActiveUSBHostdevs(driver, obj->def) < 0)
if (qemuHostdevUpdateActiveUSBDevices(driver, obj->def) < 0)
goto error;
if (qemuUpdateActiveSCSIHostdevs(driver, obj->def) < 0)
if (qemuHostdevUpdateActiveSCSIDevices(driver, obj->def) < 0)
goto error;
if (qemuConnectCgroup(driver, obj) < 0)