]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
cirrus/vnc: zap bitblit support from console code.
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Feb 2017 18:09:59 +0000 (19:09 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 21 Mar 2017 18:38:48 +0000 (11:38 -0700)
commit6b0966a4422a6374db0f250b181bb4276c9e7a10
tree62f87fc403d642d6162a981fce217a71258245e5
parentad0d3c66fa90fabc988311fd654f79c3131a4027
cirrus/vnc: zap bitblit support from console code.

There is a special code path (dpy_gfx_copy) to allow graphic emulation
notify user interface code about bitblit operations carryed out by
guests.  It is supported by cirrus and vnc server.  The intended purpose
is to optimize display scrolls and just send over the scroll op instead
of a full display update.

This is rarely used these days though because modern guests simply don't
use the cirrus blitter any more.  Any linux guest using the cirrus drm
driver doesn't.  Any windows guest newer than winxp doesn't ship with a
cirrus driver any more and thus uses the cirrus as simple framebuffer.

So this code tends to bitrot and bugs can go unnoticed for a long time.
See for example commit "3e10c3e vnc: fix qemu crash because of SIGSEGV"
which fixes a bug lingering in the code for almost a year, added by
commit "c7628bf vnc: only alloc server surface with clients connected".

Also the vnc server will throttle the frame rate in case it figures the
network can't keep up (send buffers are full).  This doesn't work with
dpy_gfx_copy, for any copy operation sent to the vnc client we have to
send all outstanding updates beforehand, otherwise the vnc client might
run the client side blit on outdated data and thereby corrupt the
display.  So this dpy_gfx_copy "optimization" might even make things
worse on slow network links.

Lets kill it once for all.

This is XSA-211.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/display/cirrus_vga.c
include/ui/console.h
ui/console.c
ui/vnc.c