]> git.proxmox.com Git - qemu.git/commit
qxl: dont update invalid area
authorDunrong Huang <riegamaths@gmail.com>
Thu, 30 Aug 2012 16:44:44 +0000 (00:44 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:15 +0000 (21:44 -0500)
commitb26859ab1803dc30e9510e8d8083c18b9970e6c4
treefadf6b4c04aebec6e16ca79649218622cf04e9d9
parent03c0342cb8725f7ae50d0db93516ef546825b4ff
qxl: dont update invalid area

This patch fixes the following error:

$ ~/usr/bin/qemu-system-x86_64 -enable-kvm -m 1024 -spice port=5900,disable-ticketing -vga qxl -cdrom ~/Images/linuxmint-13-mate-dvd-32bit.iso
(/home/mathslinux/usr/bin/qemu-system-x86_64:10068): SpiceWorker-CRITICAL **: red_worker.c:4599:red_update_area: condition `area->left >= 0 && area->top >= 0 && area->left < area->right && area->top < area->bottom' failed
Aborted

spice server terminates QEMU process if we pass invalid area to it,
so dont update those invalid areas.

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit ccc2960d654a233a6ed415b37d8ff41728d817c5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/qxl.c