[virt-tools-list] [virt-manager PATCH] Get framebuffer size from 'vgamem' attribute for qxl device
Cole Robinson
crobinso at redhat.com
Mon Aug 10 20:26:39 UTC 2015
On 07/28/2015 01:19 AM, Lin Ma wrote:
> 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 "-"
>
Thanks, pushed now.
- Cole
More information about the virt-tools-list
mailing list