mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
conf: validate serial port model in ABI checks
The serial port model cannot be allowed to change across migration as it affects ABI. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
39ac285c6b
commit
82be0ffe63
@ -21094,6 +21094,14 @@ virDomainSerialDefCheckABIStability(virDomainChrDef *src,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (src->targetModel != dst->targetModel) {
|
||||||
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
|
_("Target serial model %s does not match source %s"),
|
||||||
|
virDomainChrSerialTargetModelTypeToString(dst->targetModel),
|
||||||
|
virDomainChrSerialTargetModelTypeToString(src->targetModel));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (src->target.port != dst->target.port) {
|
if (src->target.port != dst->target.port) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Target serial port %d does not match source %d"),
|
_("Target serial port %d does not match source %d"),
|
||||||
|
Loading…
Reference in New Issue
Block a user