mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu_extdevice: Init paths in qemuExtDevicesPrepareDomain()
The path generation phase belongs conceptually into domain preparation phase and not host preparation. Move qemuExtDevicesInitPaths() call from qemuExtDevicesPrepareHost() into qemuExtDevicesPrepareDomain(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
107ebe62f4
commit
f1958a3e5e
@ -97,6 +97,9 @@ qemuExtDevicesPrepareDomain(virQEMUDriver *driver,
|
||||
int ret = 0;
|
||||
size_t i;
|
||||
|
||||
if (qemuExtDevicesInitPaths(driver, vm->def) < 0)
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < vm->def->nvideos; i++) {
|
||||
virDomainVideoDef *video = vm->def->videos[i];
|
||||
|
||||
@ -134,9 +137,6 @@ qemuExtDevicesPrepareHost(virQEMUDriver *driver,
|
||||
virDomainDef *def = vm->def;
|
||||
size_t i;
|
||||
|
||||
if (qemuExtDevicesInitPaths(driver, def) < 0)
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < def->ntpms; i++) {
|
||||
virDomainTPMDef *tpm = def->tpms[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user