Xen Security Advisory 211 (CVE-2016-9603) - Cirrus VGA Heap overflow via display refresh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Xen Security Advisory CVE-2016-9603 / XSA-211
version 2
Cirrus VGA Heap overflow via display refresh
UPDATES IN VERSION 2
====================
Patches for qemu-xen-traditional.
Public release.
ISSUE DESCRIPTION
=================
When a graphics update command gets passed to the VGA emulator, there are 3 possible modes that can be used to update the display:
* blank - Clears the display
* text - Treats the display as showing text
* graph - Treats the display as showing graphics
After the display geometry gets changed (i.e., after the CIRRUS VGA emulation has resized the display), the VGA emulator will resize the console during the next update command. However, when a blank mode is also selected during an update, this resize doesn't happen. The resize will be properly handled during the next time a non-blank mode is selected during an update.
However, other console components - such as the VNC emulation - will operate as though this resize had happened. When the display is resized to be larger than before, this can result in a heap overflow as console components will expect the display buffer to be larger than it is currently allocated.
IMPACT
======
A privileged user within the guest VM can cause a heap overflow in the device model process, potentially escalating their privileges to that of the device model process.
VULNERABLE SYSTEMS
==================
All versions of Xen are vulnerable.
Only HVM guests with the Cirrus video card are vulnerable. (The Cirrus video card is the default.) Both qemu-upstream and qemu-traditional are vulnerable.
For HVM guests with the device model running in a stub domain, "the privileges of the device model process" are identical to those of the guest kernel. But the ability of a userspace process to trigger this vulnerability via legitimate commands to the kernel driver (thus elevating its privileges to that of the guest kernel) cannot be ruled out.
MITIGATION
==========
Running only PV guests, or running HVM guests with the stgvga driver, will avoid this vulnerability.
Running HVM guests with stub domains will mitigate the vulnerability to at most a guest kernel privilege escalation.
CREDITS
=======
The discoverer of this issue requested to remain anonymous.
RESOLUTION
==========
Applying the appropriate attached patch resolves this issue (and any further bitblit vulnerabilities) by disabling the bitblit functionality from the Cirrus VGA device entirely.
xsa211-qemuu.patch qemu-upstream master
xsa211-qemuu-4.8.patch qemu-upstream 4.8 xsa211-qemuu-4.7.patch qemu-upstream 4.7 xsa211-qemuu-4.6.patch qemu-upstream 4.6 and 4.5 xsa211-qemuu-4.4.patch qemu-upstream 4.4
xsa211-qemut.patch qemu-xen-traditional 4.6 and later
xsa211-qemut-4.5.patch qemu-xen-traditional 4.4 and 4.5
$ sha256sum xsa211* 9d0cf413dcc9654ee95f6b04fa9c5714f36775cbc9ab0390a3041ec4a68845ab xsa211-qemut.patch d307d67fbf3707a324da537e593702eaff3df2068b559ef19e857b493881155e xsa211-qemut-4.5.patch 0fe17378cf2bc2742f068adf31331f36e01b0f4ffa9c596160fdba2bed3e870a xsa211-qemuu.patch 1808aa443123d8713241a60021507a4d9c142c3cd07233e2f38e9b9b28025ae2 xsa211-qemuu-4.4.patch 5053c7cb392f34a234287092293bb91f261ed68f4b58fe856fe353b647ed5beb xsa211-qemuu-4.6.patch c5884bd441ae8cecce84385c99bcb72ba0eae480a013846fa59c1255aef4808f xsa211-qemuu-4.7.patch bea7cf4065bd9d0085f4dfc3395e59c3ca9d4de9d786a3018c8dc7fd9f3d8b6e xsa211-qemuu-4.8.patch $
NOTE REGARDING EMBARGO
======================
The embargo period is much shorter than our standard two-week period. This is at the request of the discoverer.
DEPLOYMENT DURING EMBARGO
=========================
Deployment of the patches and/or the mitigation of running with an HVM stub domain (or others which are substantially similar) is permitted during the embargo, even on public-facing systems with untrusted guest users and administrators.
It is NOT permitted during the embargo to switch from Cirrus VGA to Stdvga on public-facing systems with untrusted guest users or administrators. This is because it may give a clue where the issue lies. This mitigation is only permitted AFTER the embargo ends.
As always, distribution of updated software is prohibited (except to other members of the predisclosure list).
Predisclosure list members who wish to deploy significantly different patches and/or mitigations, please contact the Xen Project Security Team.
(Note: this during-embargo deployment notice is retained in post-embargo publicly released Xen Project advisories, even though it is then no longer applicable. This is to enable the community to have oversight of the Xen Project Security Team's decisionmaking.)
For more information about permissible uses of embargoed information, consult the Xen Project community's agreed Security Policy:
http://www.xenproject.org/security-policy.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJYx9rlAAoJEIP+FMlX6CvZ3dsH/0BNA6oYy8Ix8L3224Nbjv7p ydZTagriqoKCHr5nmvUosg/52vxo3drZy6vfZBL1xLBNNKoET3NBeC7bo8jOWZnb k1fp2naLtWV2ZqOtA5FfEphexPC6iJxm517q/3RsM2bwQMA/x4UH+5TNSG20avLW LYofU+pTz7oyvgxShXBcHC/z+cyZqfnYKDL2ErsiiHgvwQQ08+MrGGLLviLxNiPL JuMxVQXzGOJsxzkF5pSYAIlggnMkW85NrsDrkh1lW/F3TezLJDlqhP2c67vWVJq2 wFLcG+DLx+4gGnzMKKy8gtf8VnWxv/8X470oieM2NKPwYLw5yfUsiHe5w2XuPMo= =wLoq
-----END PGP SIGNATURE-----
From 29e67cfd46b4d06ca1bb75558e227ec34a6af35f Mon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Thu, 9 Mar 2017 11:14:55 +0000
Subject: [PATCH] cirrus/vnc: zap drop bitblit support from console code.
From: Gerd Hoffmann <[email protected]>
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.
These changes (dropping dpy_copy and all its references and implementations) reimplemented for qemu-xen-traditional.
This is XSA-211.
--- console.c | 8 -------- console.h | 16 ---------------- hw/cirrus_vga.c | 15 +++++---------- hw/vmware_vga.c | 1 + vnc.c | 35 ----------------------------------- 5 files changed, 6 insertions(+), 69 deletions(-)
console.c +0 -8
@@ -1399,14 +1399,6 @@ void qemu_console_resize(DisplayState *ds, int width, int height) } } -void qemu_console_copy (DisplayState *ds,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -if (is_graphic_console ()) { -dpy_copy (ds, src_x, src_y, dst_x, dst_y, w, h); - } -} -PixelFormat qemu_different_endianness_pixelformat (int bpp) {PixelFormat pf;
console.h +0 -16
@@ -98,8 +98,6 @@ struct DisplayChangeListener {void (*dpy_resize)(struct DisplayState *s);void (*dpy_setdata)(struct DisplayState *s);void (*dpy_refresh)(struct DisplayState *s); -void (*dpy_copy)(struct DisplayState *s,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void (*dpy_fill)(struct DisplayState *s,int x,int y,int w,int h,uint32_t c);void (*dpy_text_cursor)(struct DisplayState *s,int x,int y);
@@ -211,18 +209,6 @@ static inline void dpy_refresh(DisplayState *s) } } -static inline void dpy_copy (struct DisplayState *s,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) { -struct DisplayChangeListener *dcl = s->listeners; -while (dcl !=NULL ) { -if (dcl->dpy_copy) - dcl->dpy_copy (s, src_x, src_y, dst_x, dst_y, w, h); -else /* TODO */ - dcl->dpy_update (s, dst_x, dst_y, w, h); - dcl = dcl->next; - } -} -static inline void dpy_fill (struct DisplayState *s,int x,int y,int w,int h,uint32_t c) {struct DisplayChangeListener *dcl = s->listeners;
@@ -297,8 +283,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (DisplayState *ds,int width,int height); -void qemu_console_copy (DisplayState *ds,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);/* sdl.c */ void sdl_display_init (DisplayState *ds,int full_screen,int no_frame,int opengl_enabled);
hw/cirrus_vga.c +5 -10
@@ -793,11 +793,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -vga_hw_update (); - (*s->cirrus_rop) (s, s->vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vram_ptr +
@@ -806,13 +801,13 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) -qemu_console_copy (s->ds, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_update (s->ds, + dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height);/* we don't have to notify the display that this portion has -changed since qemu_console_copy implies this */ +changed since dpy_update implies this */ cirrus_invalidate_region(s, s->cirrus_blt_dstaddr, s->cirrus_blt_dstpitch, s->cirrus_blt_width,
hw/vmware_vga.c +1 -0
@@ -383,6 +383,7 @@ static inline void vmsvga_copy_rect(struct vmsvga_state_s *s,# ifdef DIRECT_VRAM if (s->ds->dpy_copy) +# error This configuration is not supported. See XSA-211.qemu_console_copy (s->ds, x0, y0, x1, y1, w, h); else# endif
vnc.c +0 -35
@@ -572,36 +572,6 @@ static void send_framebuffer_update(VncState *vs, int x, int y, int w, int h)send_framebuffer_update_raw (vs, x, y, w, h); } -static void vnc_copy (DisplayState *ds,int src_x,int src_y,int dst_x,int dst_y,int w,int h) -{ -VncState *vs = ds->opaque; -int updating_client =1 ; - -if (!vs->update_requested || - src_x < vs->visible_x || src_y < vs->visible_y || - dst_x < vs->visible_x || dst_y < vs->visible_y || - (src_x + w) > (vs->visible_x + vs->visible_w) || - (src_y + h) > (vs->visible_y + vs->visible_h) || - (dst_x + w) > (vs->visible_x + vs->visible_w) || - (dst_y + h) > (vs->visible_y + vs->visible_h)) - updating_client =0 ; - -if (updating_client) -_vnc_update_client (vs); - -if (updating_client && vs->csock !=-1 && !vs->has_update) { -vnc_write_u8 (vs,0 );/* msg id */ -vnc_write_u8 (vs,0 ); -vnc_write_u16 (vs,1 );/* number of rects */ -vnc_framebuffer_update (vs, dst_x, dst_y, w, h,1 ); -vnc_write_u16 (vs, src_x); -vnc_write_u16 (vs, src_y); -vnc_flush (vs); - vs->update_requested--; - }else -framebuffer_set_updated (vs, dst_x, dst_y, w, h); -} -static int find_update_height (VncState *vs,int y,int maxy,int last_x,int x) {int h;
@@ -1543,16 +1513,12 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->has_pointer_type_change =0 ; vs->has_WMVi =0 ; vs->absolute =-1 ; - dcl->dpy_copy =NULL ;for (i = n_encodings -1 ; i >=0 ; i--) {switch (encodings[i]) {case 0 :/* Raw */ vs->has_hextile =0 ;break ; -case 1 :/* CopyRect */ - dcl->dpy_copy = vnc_copy; -break ;case 5 :/* Hextile */ vs->has_hextile =1 ;break ;
@@ -2459,7 +2425,6 @@ static void vnc_listen_read(void *opaque) vs->has_resize =0 ; vs->has_hextile =0 ; vs->update_requested =0 ; - dcl->dpy_copy =NULL ;vnc_timer_init (vs); } }
Signature · 1 line
2.1.4
From dc4eee43ac608337ae96a174e0a5c1278168bd56 Mon Sep 17 00:00:00 2001
From: Ian Jackson <[email protected]>
Date: Thu, 9 Mar 2017 11:14:55 +0000
Subject: [PATCH] cirrus/vnc: zap drop bitblit support from console code.
From: Gerd Hoffmann <[email protected]>
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.
These changes (dropping dpy_copy and all its references and implementations) reimplemented for qemu-xen-traditional.
This is XSA-211.
Conflicts:
hw/cirrus_vga.c
--- console.c | 8 -------- console.h | 16 ---------------- hw/cirrus_vga.c | 15 +++++---------- hw/vmware_vga.c | 1 + vnc.c | 35 ----------------------------------- 5 files changed, 6 insertions(+), 69 deletions(-)
console.c +0 -8
@@ -1398,14 +1398,6 @@ void qemu_console_resize(DisplayState *ds, int width, int height) } } -void qemu_console_copy (DisplayState *ds,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -if (is_graphic_console ()) { -dpy_copy (ds, src_x, src_y, dst_x, dst_y, w, h); - } -} -PixelFormat qemu_different_endianness_pixelformat (int bpp) {PixelFormat pf;
console.h +0 -16
@@ -98,8 +98,6 @@ struct DisplayChangeListener {void (*dpy_resize)(struct DisplayState *s);void (*dpy_setdata)(struct DisplayState *s);void (*dpy_refresh)(struct DisplayState *s); -void (*dpy_copy)(struct DisplayState *s,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void (*dpy_fill)(struct DisplayState *s,int x,int y,int w,int h,uint32_t c);void (*dpy_text_cursor)(struct DisplayState *s,int x,int y);
@@ -211,18 +209,6 @@ static inline void dpy_refresh(DisplayState *s) } } -static inline void dpy_copy (struct DisplayState *s,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) { -struct DisplayChangeListener *dcl = s->listeners; -while (dcl !=NULL ) { -if (dcl->dpy_copy) - dcl->dpy_copy (s, src_x, src_y, dst_x, dst_y, w, h); -else /* TODO */ - dcl->dpy_update (s, dst_x, dst_y, w, h); - dcl = dcl->next; - } -} -static inline void dpy_fill (struct DisplayState *s,int x,int y,int w,int h,uint32_t c) {struct DisplayChangeListener *dcl = s->listeners;
@@ -297,8 +283,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (DisplayState *ds,int width,int height); -void qemu_console_copy (DisplayState *ds,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);/* sdl.c */ void sdl_display_init (DisplayState *ds,int full_screen,int no_frame,int opengl_enabled);
hw/cirrus_vga.c +5 -10
@@ -793,11 +793,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) *s->cirrus_rop != cirrus_bitblt_rop_bkwd_src) notify =0 ; -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -vga_hw_update (); - (*s->cirrus_rop) (s, s->vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vram_ptr +
@@ -806,13 +801,13 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) -qemu_console_copy (s->ds, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_update (s->ds, + dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height);/* we don't have to notify the display that this portion has -changed since qemu_console_copy implies this */ +changed since dpy_update implies this */ cirrus_invalidate_region(s, s->cirrus_blt_dstaddr, s->cirrus_blt_dstpitch, s->cirrus_blt_width,
hw/vmware_vga.c +1 -0
@@ -383,6 +383,7 @@ static inline void vmsvga_copy_rect(struct vmsvga_state_s *s,# ifdef DIRECT_VRAM if (s->ds->dpy_copy) +# error This configuration is not supported. See XSA-211.qemu_console_copy (s->ds, x0, y0, x1, y1, w, h); else# endif
vnc.c +0 -35
@@ -572,36 +572,6 @@ static void send_framebuffer_update(VncState *vs, int x, int y, int w, int h)send_framebuffer_update_raw (vs, x, y, w, h); } -static void vnc_copy (DisplayState *ds,int src_x,int src_y,int dst_x,int dst_y,int w,int h) -{ -VncState *vs = ds->opaque; -int updating_client =1 ; - -if (!vs->update_requested || - src_x < vs->visible_x || src_y < vs->visible_y || - dst_x < vs->visible_x || dst_y < vs->visible_y || - (src_x + w) > (vs->visible_x + vs->visible_w) || - (src_y + h) > (vs->visible_y + vs->visible_h) || - (dst_x + w) > (vs->visible_x + vs->visible_w) || - (dst_y + h) > (vs->visible_y + vs->visible_h)) - updating_client =0 ; - -if (updating_client) -_vnc_update_client (vs); - -if (updating_client && vs->csock !=-1 && !vs->has_update) { -vnc_write_u8 (vs,0 );/* msg id */ -vnc_write_u8 (vs,0 ); -vnc_write_u16 (vs,1 );/* number of rects */ -vnc_framebuffer_update (vs, dst_x, dst_y, w, h,1 ); -vnc_write_u16 (vs, src_x); -vnc_write_u16 (vs, src_y); -vnc_flush (vs); - vs->update_requested--; - }else -framebuffer_set_updated (vs, dst_x, dst_y, w, h); -} -static int find_update_height (VncState *vs,int y,int maxy,int last_x,int x) {int h;
@@ -1543,16 +1513,12 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->has_pointer_type_change =0 ; vs->has_WMVi =0 ; vs->absolute =-1 ; - dcl->dpy_copy =NULL ;for (i = n_encodings -1 ; i >=0 ; i--) {switch (encodings[i]) {case 0 :/* Raw */ vs->has_hextile =0 ;break ; -case 1 :/* CopyRect */ - dcl->dpy_copy = vnc_copy; -break ;case 5 :/* Hextile */ vs->has_hextile =1 ;break ;
@@ -2459,7 +2425,6 @@ static void vnc_listen_read(void *opaque) vs->has_resize =0 ; vs->has_hextile =0 ; vs->update_requested =0 ; - dcl->dpy_copy =NULL ;vnc_timer_init (vs); } }
Signature · 1 line
2.1.4
From d5c69cc8c0a902b6a266f01a8d9a9a47be8d0519 Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Tue, 14 Feb 2017 19:09:59 +0100
Subject: [PATCH] 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.
--- hw/display/cirrus_vga.c | 12 ++---- include/ui/console.h | 7 ---- ui/console.c | 28 -------------- ui/vnc.c | 100 ------------------------------------------------ 4 files changed, 3 insertions(+), 144 deletions(-)
hw/display/cirrus_vga.c +3 -9
@@ -766,11 +766,6 @@ static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -graphic_hw_update (s->vga.con); - (*s->cirrus_rop) (s, s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vga.vram_ptr +
@@ -779,10 +774,9 @@ static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) { -qemu_console_copy (s->vga.con, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_gfx_update (s->vga.con, dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height); }/* we don't have to notify the display that this portion has
include/ui/console.h +0 -7
@@ -189,9 +189,6 @@ typedef struct DisplayChangeListenerOps { int x, int y, int w, int h);void (*dpy_gfx_switch)(DisplayChangeListener *dcl,struct DisplaySurface *new_surface); -void (*dpy_gfx_copy)(DisplayChangeListener *dcl, -int src_x,int src_y, -int dst_x,int dst_y,int w,int h);bool (*dpy_gfx_check_format)(DisplayChangeListener *dcl,pixman_format_code_t format);
@@ -273,8 +270,6 @@ int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);void dpy_gfx_update (QemuConsole *con,int x,int y,int w,int h);void dpy_gfx_replace_surface (QemuConsole *con,DisplaySurface *surface); -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void dpy_text_cursor (QemuConsole *con,int x,int y);void dpy_text_update (QemuConsole *con,int x,int y,int w,int h);void dpy_text_resize (QemuConsole *con,int w,int h);
@@ -397,8 +392,6 @@ int qemu_console_get_height(QemuConsole *con, int fallback);void console_select (unsigned int index);void qemu_console_resize (QemuConsole *con,int width,int height); -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);DisplaySurface *qemu_console_surface (QemuConsole *con);/* console-gl.c */
ui/console.c +0 -28
@@ -1562,27 +1562,6 @@ static void dpy_refresh(DisplayState *s) } } -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -DisplayState *s = con->ds; -DisplayChangeListener *dcl; - -if (!qemu_console_is_visible (con)) { -return ; - } - QLIST_FOREACH(dcl, &s->listeners, next) { -if (con != (dcl->con ? dcl->con : active_console)) { -continue ; - } -if (dcl->ops->dpy_gfx_copy) { - dcl->ops->dpy_gfx_copy (dcl, src_x, src_y, dst_x, dst_y, w, h); - }else {/* TODO */ - dcl->ops->dpy_gfx_update (dcl, dst_x, dst_y, w, h); - } - } -} -void dpy_text_cursor (QemuConsole *con,int x,int y) {DisplayState *s = con->ds;
@@ -2120,13 +2099,6 @@ void qemu_console_resize(QemuConsole *s, int width, int height)dpy_gfx_replace_surface (s, surface); } -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -assert (con->console_type ==GRAPHIC_CONSOLE ); -dpy_gfx_copy (con, src_x, src_y, dst_x, dst_y, w, h); -} -DisplaySurface *qemu_console_surface (QemuConsole *console) {return console->surface;
ui/vnc.c +0 -100
112 lines not on this page · raw message
Signature · 1 line
2.1.4
From 6633eca887995b05803404e0a685c6f71126cec4 Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Tue, 14 Feb 2017 19:09:59 +0100
Subject: [PATCH] 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.
--- hw/display/cirrus_vga.c | 12 ++----- include/ui/console.h | 8 ----- ui/console.c | 28 --------------- ui/vnc.c | 96 ------------------------------------------------- 4 files changed, 3 insertions(+), 141 deletions(-)
hw/display/cirrus_vga.c +3 -9
@@ -755,11 +755,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -graphic_hw_update (s->vga.con); - (*s->cirrus_rop) (s, s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vga.vram_ptr +
@@ -768,10 +763,9 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) { -qemu_console_copy (s->vga.con, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_gfx_update (s->vga.con, dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height); }/* we don't have to notify the display that this portion has
include/ui/console.h +0 -8
@@ -159,10 +159,6 @@ typedef struct DisplayChangeListenerOps { int x, int y, int w, int h);void (*dpy_gfx_switch)(DisplayChangeListener *dcl,struct DisplaySurface *new_surface); -void (*dpy_gfx_copy)(DisplayChangeListener *dcl, -int src_x,int src_y, -int dst_x,int dst_y,int w,int h); -void (*dpy_text_cursor)(DisplayChangeListener *dcl,int x,int y); void (*dpy_text_resize)(DisplayChangeListener *dcl,
@@ -216,8 +212,6 @@ void unregister_displaychangelistener(DisplayChangeListener *dcl);void dpy_gfx_update (QemuConsole *con,int x,int y,int w,int h);void dpy_gfx_replace_surface (QemuConsole *con,DisplaySurface *surface); -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void dpy_text_cursor (QemuConsole *con,int x,int y);void dpy_text_update (QemuConsole *con,int x,int y,int w,int h);void dpy_text_resize (QemuConsole *con,int w,int h);
@@ -295,8 +289,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (QemuConsole *con,int width,int height); -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);DisplaySurface *qemu_console_surface (QemuConsole *con);DisplayState *qemu_console_displaystate (QemuConsole *console);
ui/console.c +0 -28
@@ -1438,27 +1438,6 @@ void dpy_refresh(DisplayState *s) } } -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -DisplayState *s = con->ds; -DisplayChangeListener *dcl; - -if (!qemu_console_is_visible (con)) { -return ; - } - QLIST_FOREACH(dcl, &s->listeners, next) { -if (con != (dcl->con ? dcl->con : active_console)) { -continue ; - } -if (dcl->ops->dpy_gfx_copy) { - dcl->ops->dpy_gfx_copy (dcl, src_x, src_y, dst_x, dst_y, w, h); - }else {/* TODO */ - dcl->ops->dpy_gfx_update (dcl, dst_x, dst_y, w, h); - } - } -} -void dpy_text_cursor (QemuConsole *con,int x,int y) {DisplayState *s = con->ds;
@@ -1830,13 +1809,6 @@ void qemu_console_resize(QemuConsole *s, int width, int height)dpy_gfx_replace_surface (s, surface); } -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -assert (con->console_type ==GRAPHIC_CONSOLE ); -dpy_gfx_copy (con, src_x, src_y, dst_x, dst_y, w, h); -} -DisplaySurface *qemu_console_surface (QemuConsole *console) {return console->surface;
ui/vnc.c +0 -96
120 lines not on this page · raw message
Signature · 1 line
2.1.4
From c85f4df08b17f5808eda2b8afea1e4db7016cdc8 Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Tue, 14 Feb 2017 19:09:59 +0100
Subject: [PATCH] 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.
--- hw/display/cirrus_vga.c | 12 ++----- include/ui/console.h | 8 ----- ui/console.c | 28 --------------- ui/vnc.c | 91 ------------------------------------------------- 4 files changed, 3 insertions(+), 136 deletions(-)
hw/display/cirrus_vga.c +3 -9
@@ -756,11 +756,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -graphic_hw_update (s->vga.con); - (*s->cirrus_rop) (s, s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vga.vram_ptr +
@@ -769,10 +764,9 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) { -qemu_console_copy (s->vga.con, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_gfx_update (s->vga.con, dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height); }/* we don't have to notify the display that this portion has
include/ui/console.h +0 -8
@@ -158,10 +158,6 @@ typedef struct DisplayChangeListenerOps { int x, int y, int w, int h);void (*dpy_gfx_switch)(DisplayChangeListener *dcl,struct DisplaySurface *new_surface); -void (*dpy_gfx_copy)(DisplayChangeListener *dcl, -int src_x,int src_y, -int dst_x,int dst_y,int w,int h); -void (*dpy_text_cursor)(DisplayChangeListener *dcl,int x,int y); void (*dpy_text_resize)(DisplayChangeListener *dcl,
@@ -223,8 +219,6 @@ int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);void dpy_gfx_update (QemuConsole *con,int x,int y,int w,int h);void dpy_gfx_replace_surface (QemuConsole *con,DisplaySurface *surface); -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void dpy_text_cursor (QemuConsole *con,int x,int y);void dpy_text_update (QemuConsole *con,int x,int y,int w,int h);void dpy_text_resize (QemuConsole *con,int w,int h);
@@ -315,8 +309,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (QemuConsole *con,int width,int height); -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);DisplaySurface *qemu_console_surface (QemuConsole *con);DisplayState *qemu_console_displaystate (QemuConsole *console);
ui/console.c +0 -28
@@ -1450,27 +1450,6 @@ static void dpy_refresh(DisplayState *s) } } -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -DisplayState *s = con->ds; -DisplayChangeListener *dcl; - -if (!qemu_console_is_visible (con)) { -return ; - } - QLIST_FOREACH(dcl, &s->listeners, next) { -if (con != (dcl->con ? dcl->con : active_console)) { -continue ; - } -if (dcl->ops->dpy_gfx_copy) { - dcl->ops->dpy_gfx_copy (dcl, src_x, src_y, dst_x, dst_y, w, h); - }else {/* TODO */ - dcl->ops->dpy_gfx_update (dcl, dst_x, dst_y, w, h); - } - } -} -void dpy_text_cursor (QemuConsole *con,int x,int y) {DisplayState *s = con->ds;
@@ -1968,13 +1947,6 @@ void qemu_console_resize(QemuConsole *s, int width, int height)dpy_gfx_replace_surface (s, surface); } -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -assert (con->console_type ==GRAPHIC_CONSOLE ); -dpy_gfx_copy (con, src_x, src_y, dst_x, dst_y, w, h); -} -DisplaySurface *qemu_console_surface (QemuConsole *console) {return console->surface;
ui/vnc.c +0 -91
103 lines not on this page · raw message
Signature · 1 line
2.1.4
From 9de536fbc2be97ae887560f08f0fd824efa3d5db Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Tue, 14 Feb 2017 19:09:59 +0100
Subject: [PATCH] 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.
--- hw/display/cirrus_vga.c | 12 ++----- include/ui/console.h | 7 ---- ui/console.c | 28 --------------- ui/vnc.c | 91 ------------------------------------------------- 4 files changed, 3 insertions(+), 135 deletions(-)
hw/display/cirrus_vga.c +3 -9
@@ -758,11 +758,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -graphic_hw_update (s->vga.con); - (*s->cirrus_rop) (s, s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vga.vram_ptr +
@@ -771,10 +766,9 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) { -qemu_console_copy (s->vga.con, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_gfx_update (s->vga.con, dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height); }/* we don't have to notify the display that this portion has
include/ui/console.h +0 -7
@@ -166,9 +166,6 @@ typedef struct DisplayChangeListenerOps { int x, int y, int w, int h);void (*dpy_gfx_switch)(DisplayChangeListener *dcl,struct DisplaySurface *new_surface); -void (*dpy_gfx_copy)(DisplayChangeListener *dcl, -int src_x,int src_y, -int dst_x,int dst_y,int w,int h);bool (*dpy_gfx_check_format)(DisplayChangeListener *dcl,pixman_format_code_t format);
@@ -233,8 +230,6 @@ int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);void dpy_gfx_update (QemuConsole *con,int x,int y,int w,int h);void dpy_gfx_replace_surface (QemuConsole *con,DisplaySurface *surface); -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void dpy_text_cursor (QemuConsole *con,int x,int y);void dpy_text_update (QemuConsole *con,int x,int y,int w,int h);void dpy_text_resize (QemuConsole *con,int w,int h);
@@ -329,8 +324,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (QemuConsole *con,int width,int height); -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);DisplaySurface *qemu_console_surface (QemuConsole *con);/* console-gl.c */
ui/console.c +0 -28
@@ -1495,27 +1495,6 @@ static void dpy_refresh(DisplayState *s) } } -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -DisplayState *s = con->ds; -DisplayChangeListener *dcl; - -if (!qemu_console_is_visible (con)) { -return ; - } - QLIST_FOREACH(dcl, &s->listeners, next) { -if (con != (dcl->con ? dcl->con : active_console)) { -continue ; - } -if (dcl->ops->dpy_gfx_copy) { - dcl->ops->dpy_gfx_copy (dcl, src_x, src_y, dst_x, dst_y, w, h); - }else {/* TODO */ - dcl->ops->dpy_gfx_update (dcl, dst_x, dst_y, w, h); - } - } -} -void dpy_text_cursor (QemuConsole *con,int x,int y) {DisplayState *s = con->ds;
@@ -1968,13 +1947,6 @@ void qemu_console_resize(QemuConsole *s, int width, int height)dpy_gfx_replace_surface (s, surface); } -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -assert (con->console_type ==GRAPHIC_CONSOLE ); -dpy_gfx_copy (con, src_x, src_y, dst_x, dst_y, w, h); -} -DisplaySurface *qemu_console_surface (QemuConsole *console) {return console->surface;
ui/vnc.c +0 -91
103 lines not on this page · raw message
Signature · 1 line
2.1.4
From 7563ddb0bd67e7e54568e017cb7d4f7f556587fc Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Tue, 14 Feb 2017 19:09:59 +0100
Subject: [PATCH] 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.
--- hw/display/cirrus_vga.c | 12 ++----- include/ui/console.h | 7 ---- ui/console.c | 28 --------------- ui/vnc.c | 96 ------------------------------------------------- 4 files changed, 3 insertions(+), 140 deletions(-)
hw/display/cirrus_vga.c +3 -9
@@ -760,11 +760,6 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) } } -/* we have to flush all pending changes so that the copy -is generated at the appropriate moment in time */ -if (notify) -graphic_hw_update (s->vga.con); - (*s->cirrus_rop) (s, s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), s->vga.vram_ptr +
@@ -773,10 +768,9 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) s->cirrus_blt_width, s->cirrus_blt_height);if (notify) { -qemu_console_copy (s->vga.con, - sx, sy, dx, dy, - s->cirrus_blt_width / depth, - s->cirrus_blt_height); +dpy_gfx_update (s->vga.con, dx, dy, + s->cirrus_blt_width / depth, + s->cirrus_blt_height); }/* we don't have to notify the display that this portion has
include/ui/console.h +0 -7
@@ -189,9 +189,6 @@ typedef struct DisplayChangeListenerOps { int x, int y, int w, int h);void (*dpy_gfx_switch)(DisplayChangeListener *dcl,struct DisplaySurface *new_surface); -void (*dpy_gfx_copy)(DisplayChangeListener *dcl, -int src_x,int src_y, -int dst_x,int dst_y,int w,int h);bool (*dpy_gfx_check_format)(DisplayChangeListener *dcl,pixman_format_code_t format);
@@ -273,8 +270,6 @@ int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info);void dpy_gfx_update (QemuConsole *con,int x,int y,int w,int h);void dpy_gfx_replace_surface (QemuConsole *con,DisplaySurface *surface); -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);void dpy_text_cursor (QemuConsole *con,int x,int y);void dpy_text_update (QemuConsole *con,int x,int y,int w,int h);void dpy_text_resize (QemuConsole *con,int w,int h);
@@ -398,8 +393,6 @@ void text_consoles_set_display(DisplayState *ds);void console_select (unsigned int index);void console_color_init (DisplayState *ds);void qemu_console_resize (QemuConsole *con,int width,int height); -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h);DisplaySurface *qemu_console_surface (QemuConsole *con);/* console-gl.c */
ui/console.c +0 -28
@@ -1558,27 +1558,6 @@ static void dpy_refresh(DisplayState *s) } } -void dpy_gfx_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -DisplayState *s = con->ds; -DisplayChangeListener *dcl; - -if (!qemu_console_is_visible (con)) { -return ; - } - QLIST_FOREACH(dcl, &s->listeners, next) { -if (con != (dcl->con ? dcl->con : active_console)) { -continue ; - } -if (dcl->ops->dpy_gfx_copy) { - dcl->ops->dpy_gfx_copy (dcl, src_x, src_y, dst_x, dst_y, w, h); - }else {/* TODO */ - dcl->ops->dpy_gfx_update (dcl, dst_x, dst_y, w, h); - } - } -} -void dpy_text_cursor (QemuConsole *con,int x,int y) {DisplayState *s = con->ds;
@@ -2104,13 +2083,6 @@ void qemu_console_resize(QemuConsole *s, int width, int height)dpy_gfx_replace_surface (s, surface); } -void qemu_console_copy (QemuConsole *con,int src_x,int src_y, -int dst_x,int dst_y,int w,int h) -{ -assert (con->console_type ==GRAPHIC_CONSOLE ); -dpy_gfx_copy (con, src_x, src_y, dst_x, dst_y, w, h); -} -DisplaySurface *qemu_console_surface (QemuConsole *console) {return console->surface;
ui/vnc.c +0 -96
108 lines not on this page · raw message
Signature · 1 line
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel