[PATCH 2/5] qemu: add disk queue count ABI stability check

Hiroki Narukawa hnarukaw at yahoo-corp.jp
Thu Sep 9 03:34:45 UTC 2021


virtio-blk num-queue is visible to guest OS, so this must be kept while live migration.

Signed-off-by: Hiroki Narukawa <hnarukaw at yahoo-corp.jp>
---
 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 dbefc98ee8..6cc1f78ec2 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -20766,6 +20766,13 @@ virDomainDiskDefCheckABIStability(virDomainDiskDef *src,
         return false;
     }
 
+    if (src->queues != dst->queues) {
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                       _("Target disk queue count %u does not match source %u"),
+                       dst->queues, src->queues);
+        return false;
+    }
+
     if (!virDomainVirtioOptionsCheckABIStability(src->virtio, dst->virtio))
         return false;
 
-- 
2.17.1




More information about the libvir-list mailing list