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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux