mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu: remove panic dev models s390 and pseries when migrating
The panic devices with models s390 and pseries are autogenerated. For backwards compatibility reasons the devices are to be removed when migrating. Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1045c56c0f
commit
230c631917
@ -3308,6 +3308,15 @@ qemuDomainDefFormatBuf(virQEMUDriverPtr driver,
|
||||
virDomainControllerDefFree(usb);
|
||||
}
|
||||
|
||||
/* Remove the panic device for selected models if present */
|
||||
for (i = 0; i < def->npanics; i++) {
|
||||
if (def->panics[i]->model == VIR_DOMAIN_PANIC_MODEL_S390 ||
|
||||
def->panics[i]->model == VIR_DOMAIN_PANIC_MODEL_PSERIES) {
|
||||
VIR_DELETE_ELEMENT(def->panics, i, def->npanics);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < def->nchannels; i++)
|
||||
qemuDomainChrDefDropDefaultPath(def->channels[i], driver);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user