]> git.ipfire.org Git - thirdparty/qemu.git/commit
qxl: fix local renderer
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 5 Sep 2013 19:57:19 +0000 (21:57 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 25 Sep 2013 03:46:18 +0000 (22:46 -0500)
commitdc0973b5883df7d822b285119691ade8c84dda9c
tree38345229b29ed22fa989def49bdfc78eb9899117
parentb6d163fdd8131285a01fe46e6afdba727e4df9ca
qxl: fix local renderer

The local spice renderer assumes the primary surface is located at the
start of the "ram" bar.  This used to be a requirement in qxl hardware
revision 1.  In revision 2+ this is relaxed.  Nevertheless guest drivers
continued to use the traditional location, for historical and backward
compatibility reasons.  The qxl kms driver doesn't though as it depends
on qxl revision 4+ anyway.

Result is that local rendering is hosed for recent linux guests, you'll
get pixel garbage with non-spice ui (gtk, sdl, vnc) and when doing
screendumps.  Fix that by doing a proper mapping of the guest-specified
memory location.

https://bugzilla.redhat.com/show_bug.cgi?id=948717

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit c58c7b959b93b864a27fd6b3646ee1465ab8832b)

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