conf: add ABI stability check for disk rotation rate

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-04-07 13:45:18 +01:00
parent 62edbca6c4
commit ee4abd6312
1 changed files with 7 additions and 0 deletions

View File

@ -22294,6 +22294,13 @@ virDomainDiskDefCheckABIStability(virDomainDiskDefPtr src,
return false;
}
if (src->rotation_rate != dst->rotation_rate) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("Target disk rotation rate %u RPM does not match source %u RPM"),
dst->rotation_rate, src->rotation_rate);
return false;
}
if (!virDomainVirtioOptionsCheckABIStability(src->virtio, dst->virtio))
return false;