c401cc
From 999fdb9e7b6522fd5896edd4a0154865435b10c9 Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <999fdb9e7b6522fd5896edd4a0154865435b10c9.1386348947.git.jdenemar@redhat.com>
c401cc
From: =?UTF-8?q?J=C3=A1n=20Tomko?= <jtomko@redhat.com>
c401cc
Date: Fri, 6 Dec 2013 15:20:02 +0100
c401cc
Subject: [PATCH] Add qxl ram size to ABI stability check
c401cc
c401cc
55bfd02 added a 'ram' attribute for qxl video devices
c401cc
but didn't update the ABI check.
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=1035123
c401cc
(cherry picked from commit 952ab4c993b88a324c5910346efa4e75a72293b7)
c401cc
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 src/conf/domain_conf.c | 7 +++++++
c401cc
 1 file changed, 7 insertions(+)
c401cc
c401cc
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
c401cc
index c0c4add..6048640 100644
c401cc
--- a/src/conf/domain_conf.c
c401cc
+++ b/src/conf/domain_conf.c
c401cc
@@ -13020,6 +13020,13 @@ virDomainVideoDefCheckABIStability(virDomainVideoDefPtr src,
c401cc
         return false;
c401cc
     }
c401cc
 
c401cc
+    if (src->ram != dst->ram) {
c401cc
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
c401cc
+                       _("Target video card ram %u does not match source %u"),
c401cc
+                       dst->ram, src->ram);
c401cc
+        return false;
c401cc
+    }
c401cc
+
c401cc
     if (src->vram != dst->vram) {
c401cc
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
c401cc
                        _("Target video card vram %u does not match source %u"),
c401cc
-- 
c401cc
1.8.4.5
c401cc