virDomainDiskDefCheckABIStability: add disk queue count ABI stability check

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

Signed-off-by: Hiroki Narukawa <hnarukaw@yahoo-corp.jp>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Hiroki Narukawa 2021-09-09 12:34:45 +09:00 committed by Peter Krempa
parent 32967b891e
commit 240bdcbc93

View File

@ -20767,6 +20767,13 @@ virDomainDiskDefCheckABIStability(virDomainDiskDef *src,
return false; 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)) if (!virDomainVirtioOptionsCheckABIStability(src->virtio, dst->virtio))
return false; return false;