mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 02:25:18 +00:00
qemu: process: Make qemuProcessPrepareDomainDiskBootorder more universal
Rename it to 'qemuProcessPrepareDeviceBootorder' and call it from 'qemuProcessPrepareDomain' rather than 'qemuProcessPrepareDomainStorage'. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
aee82fe616
commit
c90d17c812
@ -6264,7 +6264,7 @@ qemuProcessPrepareDomainNUMAPlacement(virDomainObj *vm)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
qemuProcessPrepareDomainDiskBootorder(virDomainDef *def)
|
qemuProcessPrepareDeviceBootorder(virDomainDef *def)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
unsigned int bootCD = 0;
|
unsigned int bootCD = 0;
|
||||||
@ -6350,8 +6350,6 @@ qemuProcessPrepareDomainStorage(virQEMUDriver *driver,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
qemuProcessPrepareDomainDiskBootorder(vm->def);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6559,6 +6557,8 @@ qemuProcessPrepareDomain(virQEMUDriver *driver,
|
|||||||
if (qemuAssignDeviceAliases(vm->def, priv->qemuCaps) < 0)
|
if (qemuAssignDeviceAliases(vm->def, priv->qemuCaps) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
qemuProcessPrepareDeviceBootorder(vm->def);
|
||||||
|
|
||||||
VIR_DEBUG("Setting graphics devices");
|
VIR_DEBUG("Setting graphics devices");
|
||||||
if (qemuProcessSetupGraphics(driver, vm, priv->qemuCaps, flags) < 0)
|
if (qemuProcessSetupGraphics(driver, vm, priv->qemuCaps, flags) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user