Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/conf/domain_conf.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 875edcbff3..83415f9271 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -22313,6 +22313,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;
--
2.30.2