mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
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:
parent
5ab29e369f
commit
8da5cbfc78
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user