mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: Add serial target type to ABI stability check
https://bugzilla.redhat.com/show_bug.cgi?id=1273686 There is no ABI check for serial target type attribute, just add it. Signed-off-by: Luyao Huang <lhuang@redhat.com>
This commit is contained in:
parent
4f3d15479a
commit
a98145e7c9
@ -17225,6 +17225,14 @@ static bool
|
||||
virDomainSerialDefCheckABIStability(virDomainChrDefPtr src,
|
||||
virDomainChrDefPtr dst)
|
||||
{
|
||||
if (src->targetType != dst->targetType) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Target serial type %s does not match source %s"),
|
||||
virDomainChrSerialTargetTypeToString(dst->targetType),
|
||||
virDomainChrSerialTargetTypeToString(src->targetType));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (src->target.port != dst->target.port) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Target serial port %d does not match source %d"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user