mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: Stop virQEMUCaps propagation into qemuHostdevPreparePCIDevices()
After previous cleanups, qemuHostdevPreparePCIDevices() no longer needs virQEMUCaps. Drop its passing from callers. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
430fc2ec26
commit
4644aba0b0
@ -181,7 +181,6 @@ qemuHostdevPreparePCIDevices(virQEMUDriver *driver,
|
||||
const unsigned char *uuid,
|
||||
virDomainHostdevDef **hostdevs,
|
||||
int nhostdevs,
|
||||
virQEMUCaps *qemuCaps G_GNUC_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
return virHostdevPreparePCIDevices(driver->hostdevMgr,
|
||||
@ -261,7 +260,6 @@ qemuHostdevPrepareMediatedDevices(virQEMUDriver *driver,
|
||||
int
|
||||
qemuHostdevPrepareDomainDevices(virQEMUDriver *driver,
|
||||
virDomainDef *def,
|
||||
virQEMUCaps *qemuCaps,
|
||||
unsigned int flags)
|
||||
{
|
||||
if (!def->nhostdevs && !def->ndisks)
|
||||
@ -271,8 +269,7 @@ qemuHostdevPrepareDomainDevices(virQEMUDriver *driver,
|
||||
return -1;
|
||||
|
||||
if (qemuHostdevPreparePCIDevices(driver, def->name, def->uuid,
|
||||
def->hostdevs, def->nhostdevs,
|
||||
qemuCaps, flags) < 0)
|
||||
def->hostdevs, def->nhostdevs, flags) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuHostdevPrepareUSBDevices(driver, def->name,
|
||||
|
@ -52,7 +52,6 @@ int qemuHostdevPreparePCIDevices(virQEMUDriver *driver,
|
||||
const unsigned char *uuid,
|
||||
virDomainHostdevDef **hostdevs,
|
||||
int nhostdevs,
|
||||
virQEMUCaps *qemuCaps,
|
||||
unsigned int flags);
|
||||
int qemuHostdevPrepareUSBDevices(virQEMUDriver *driver,
|
||||
const char *name,
|
||||
@ -73,7 +72,6 @@ int qemuHostdevPrepareMediatedDevices(virQEMUDriver *driver,
|
||||
int nhostdevs);
|
||||
int qemuHostdevPrepareDomainDevices(virQEMUDriver *driver,
|
||||
virDomainDef *def,
|
||||
virQEMUCaps *qemuCaps,
|
||||
unsigned int flags);
|
||||
|
||||
void qemuHostdevReAttachOneNVMeDisk(virQEMUDriver *driver,
|
||||
|
@ -1490,8 +1490,8 @@ qemuDomainAttachHostPCIDevice(virQEMUDriver *driver,
|
||||
|
||||
if (!cfg->relaxedACS)
|
||||
flags |= VIR_HOSTDEV_STRICT_ACS_CHECK;
|
||||
if (qemuHostdevPreparePCIDevices(driver, vm->def->name, vm->def->uuid,
|
||||
&hostdev, 1, priv->qemuCaps, flags) < 0)
|
||||
if (qemuHostdevPreparePCIDevices(driver, vm->def->name,
|
||||
vm->def->uuid, &hostdev, 1, flags) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuDomainAdjustMaxMemLockHostdev(vm, hostdev) < 0)
|
||||
|
@ -7164,8 +7164,7 @@ qemuProcessPrepareHost(virQEMUDriver *driver,
|
||||
hostdev_flags |= VIR_HOSTDEV_STRICT_ACS_CHECK;
|
||||
if (flags & VIR_QEMU_PROCESS_START_NEW)
|
||||
hostdev_flags |= VIR_HOSTDEV_COLD_BOOT;
|
||||
if (qemuHostdevPrepareDomainDevices(driver, vm->def, priv->qemuCaps,
|
||||
hostdev_flags) < 0)
|
||||
if (qemuHostdevPrepareDomainDevices(driver, vm->def, hostdev_flags) < 0)
|
||||
return -1;
|
||||
|
||||
VIR_DEBUG("Preparing chr device backends");
|
||||
|
Loading…
Reference in New Issue
Block a user