Skip to content

RFC console/display: cleanup & untangle data structures.

Gerd Hoffmann qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12console: fix displaychangelisteners interfacehw/qxl.c include/ui/console.h include/ui/spice-display.h +9 more+345 -2280 replies
2/12console: kill DisplayState->opaqueinclude/ui/console.h ui/gtk.c ui/vnc.c +1 more+20 -250 replies
3/12spice: zap sdpy globalui/spice-display.c+16 -140 replies
4/12qxl: zap qxl0 globalhw/qxl.c+15 -130 replies
5/12qxl: better vga init in enter_vga_modehw/qxl.c+1 -10 replies
6/12sdl: drop dead codeui/sdl.c+0 -50 replies
7/12console: rework DisplaySurface handling [vga emu side]hw/nseries.c hw/palm.c hw/qxl-render.c +4 more+50 -800 replies
8/12console: rework DisplaySurface handling [dcl/ui side]hw/qxl.c include/ui/console.h include/ui/spice-display.h +5 more+39 -460 replies
9/12console: add surface_*() gettersinclude/ui/console.h+38 -80 replies
10/12gtk: stop using DisplayStateui/gtk.c+80 -600 replies
11/12vnc: stop using DisplayStateui/vnc-enc-tight.c ui/vnc-jobs.c ui/vnc.c +1 more+46 -380 replies
12/12sdl: stop using DisplayStateui/sdl.c+51 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RfC PATCH 00/12] console/display: cleanup & untangle data structures.

Hi,

This patch series continues the console & display code cleanups. It's RfC because it is (a) not complete yet and (b) most likely breaks the build (xen, cocoa). If someone wants help fill the gaps (especially cocoa) patches are very welcome.

The short-team goal I'm heading to is to make the DisplaySurface (and *only* the DisplaySurface) the central data structure for the display renderers in ui/. They get one, they render it, they are notified about updates, they are notified when the surface changes. Done, there is nothing else they need to know or care about.

The longer-term goal building on top of this is to put the console internals upside down (without having to touch the ui renderers in the process). I want have one DisplaySurface per console, which then lives forever, and console switches (Ctrl-Alt-$number in vnc+sdl) become a simple surface switch. Alternative ways to handle consoles becomes alot easier to implement, in gtk we can probably simply put each DisplaySurface into one tab. The need to ask the vga emulation to redraw the screen on console switches goes away, vga_hw_invalidate can be zapped. We can stop hopping through loops for screendumps, we can just write out the DisplaySurface content.

Oh, and this also paves the way to handle multihead in a reasonable way.

cheers,
Gerd

Gerd Hoffmann (12):
console: fix displaychangelisteners interface
console: kill DisplayState->opaque
spice: zap sdpy global
qxl: zap qxl0 global
qxl: better vga init in enter_vga_mode
sdl: drop dead code
console: rework DisplaySurface handling [vga emu side]
console: rework DisplaySurface handling [dcl/ui side]
console: add surface_*() getters
gtk: stop using DisplayState
vnc: stop using DisplayState
sdl: stop using DisplayState

 hw/nseries.c               |    7 --
 hw/palm.c                  |    7 --
 hw/qxl-render.c            |   12 +--
 hw/qxl.c                   |   51 ++++++----
 hw/vga.c                   |   17 ++--
 include/ui/console.h       |  226 +++++++++++++++-----------------------------
 include/ui/spice-display.h |    4 +-
 trace-events               |    7 +-
 ui/cocoa.m                 |   26 +++--
 ui/console.c               |  193 +++++++++++++++++++++++++++++++------
 ui/curses.c                |   32 +++++--
 ui/gtk.c                   |  162 ++++++++++++++++++-------------
 ui/sdl.c                   |  123 ++++++++++++++----------
 ui/spice-display.c         |   51 ++++++----
 ui/vnc-enc-tight.c         |    7 +-
 ui/vnc-jobs.c              |    1 -
 ui/vnc.c                   |  144 +++++++++++++++-------------
 ui/vnc.h                   |    4 +-
 vl.c                       |    6 +-
 19 files changed, 611 insertions(+), 469 deletions(-)
Signature · 1 line
1.7.9.7