mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
Get framebuffer size from 'vgamem' attribute for qxl device
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@suse.com>
This commit is contained in:
parent
9f26bbb5e9
commit
7be81e6300
@ -3043,7 +3043,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 "-"
|
||||
|
Loading…
x
Reference in New Issue
Block a user