[virt-tools-list] [virt-manager PATCH] Get framebuffer size from 'vgamem' attribute for qxl device

Lin Ma lma at suse.com
Tue Jul 28 05:19:17 UTC 2015


Libvirt commit#742d49f introduces vgamem attribute to set the VGA
framebuffer size for QXL device of qemu, So we use vgamem instead
of vram here for qxl.

Signed-off-by: Lin Ma <lma at suse.com>
---
 virtManager/details.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/virtManager/details.py b/virtManager/details.py
index 718f50a..a07077b 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -3070,7 +3070,10 @@ class vmmDetails(vmmGObjectUI):
             self.widget("video-model"))
 
         model = vid.model
-        ram = vid.vram
+        if model == "qxl" and vid.vgamem:
+            ram = vid.vgamem
+        else:
+            ram = vid.vram
         heads = vid.heads
         try:
             ramlabel = ram and "%d MiB" % (int(ram) / 1024) or "-"
-- 
2.1.4




More information about the virt-tools-list mailing list