]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add qxl ram size to ABI stability check
authorJán Tomko <jtomko@redhat.com>
Wed, 4 Dec 2013 12:11:39 +0000 (13:11 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 6 Dec 2013 14:00:16 +0000 (15:00 +0100)
55bfd02 added a 'ram' attribute for qxl video devices
but didn't update the ABI check.

https://bugzilla.redhat.com/show_bug.cgi?id=1035123

src/conf/domain_conf.c

index 0268847d8e3ae6f06e3ab432d8189ae48c727c65..b76cf26ac8d8c67fdc56105e9188abcca678aba3 100644 (file)
@@ -13191,6 +13191,13 @@ virDomainVideoDefCheckABIStability(virDomainVideoDefPtr src,
         return false;
     }
 
+    if (src->ram != dst->ram) {
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                       _("Target video card ram %u does not match source %u"),
+                       dst->ram, src->ram);
+        return false;
+    }
+
     if (src->vram != dst->vram) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Target video card vram %u does not match source %u"),