[libvirt] [PATCH] Add qxl ram size to ABI stability check

Ján Tomko jtomko at redhat.com
Fri Dec 6 14:01:54 UTC 2013


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 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 0268847..b76cf26 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -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"),
-- 
1.8.3.2




More information about the libvir-list mailing list