mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 09:14:57 +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
|
||||
qemuProcessPrepareDomainDiskBootorder(virDomainDef *def)
|
||||
qemuProcessPrepareDeviceBootorder(virDomainDef *def)
|
||||
{
|
||||
size_t i;
|
||||
unsigned int bootCD = 0;
|
||||
@ -6350,8 +6350,6 @@ qemuProcessPrepareDomainStorage(virQEMUDriver *driver,
|
||||
return -1;
|
||||
}
|
||||
|
||||
qemuProcessPrepareDomainDiskBootorder(vm->def);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -6559,6 +6557,8 @@ qemuProcessPrepareDomain(virQEMUDriver *driver,
|
||||
if (qemuAssignDeviceAliases(vm->def, priv->qemuCaps) < 0)
|
||||
return -1;
|
||||
|
||||
qemuProcessPrepareDeviceBootorder(vm->def);
|
||||
|
||||
VIR_DEBUG("Setting graphics devices");
|
||||
if (qemuProcessSetupGraphics(driver, vm, priv->qemuCaps, flags) < 0)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user