Skip to content

RfC: rework display initialization

Gerd Hoffmann qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24sdl: remove -no-frame supportinclude/ui/console.h ui/sdl.c ui/sdl2.c +1 more+8 -274 replies
2/24sdl: remove -alt-grab and -ctrl-grab supportui/sdl.c ui/sdl2.c vl.c+10 -612 replies
3/24sdl: use ctrl-alt-g as grab hotkeyui/sdl.c ui/sdl2.c+20 -280 replies
4/24vl: rename DisplayType to LegacyDisplayTypevl.c+5 -50 replies
5/24gtk: add and use DisplayOptions + DisplayGTKinclude/ui/console.h qapi/ui.json ui/gtk.c +1 more+84 -240 replies
6/24sdl: use DisplayOptionsinclude/ui/console.h qapi/ui.json ui/sdl.c +2 more+50 -280 replies
7/24vl: drop no_quit variablevl.c+2 -50 replies
8/24egl-headless: use DisplayOptionsinclude/ui/console.h qapi/ui.json ui/egl-headless.c +1 more+7 -50 replies
9/24curses: use DisplayOptionsinclude/ui/console.h qapi/ui.json ui/curses.c +1 more+9 -60 replies
10/24cocoa: use DisplayOptionsinclude/ui/console.h qapi/ui.json ui/cocoa.m +1 more+10 -70 replies
11/24vl: drop full_screen variablevl.c+0 -20 replies
12/24vl: drop display_type variablevl.c+13 -390 replies
13/24vl: drop request_opengl variablevl.c+1 -70 replies
14/24console: add qemu display registry, add gtkinclude/ui/console.h ui/console.c ui/gtk.c +1 more+67 -340 replies
15/24sdl: hook up to display registryinclude/ui/console.h ui/sdl.c ui/sdl2.c +1 more+29 -460 replies
16/24cocoa: hook up to display registryinclude/ui/console.h ui/cocoa.m vl.c+13 -160 replies
17/24curses: hook up to display registryinclude/ui/console.h ui/curses.c vl.c+15 -280 replies
18/24egl-headless: hook up to display registryinclude/ui/console.h ui/egl-headless.c vl.c+19 -160 replies
19/24console: add and use qemu_display_find_defaultinclude/ui/console.h ui/console.c vl.c+25 -105 replies
20/24console: add ui module loading supportinclude/qemu/module.h ui/console.c+7 -00 replies
21/24sdl: build as moduleMakefile.objs configure ui/Makefile.objs+5 -40 replies
22/24gtk: build as moduleconfigure ui/Makefile.objs+10 -110 replies
23/24curses: build as moduleconfigure ui/Makefile.objs+8 -40 replies
24/24build: opengl should not need X11configure+2 -20 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] [PATCH 00/24] RfC: rework display initialization

Hi,

This series reworks the qemu display initialization. Changes:

* Create a QAPI DisplayOptions type for display configuration.
* Switch all display initialization calls to accept DisplayOptions instead of a bunch of bools.
* Add a registry for displays, and remove alot of #ifdefs from vl.c
* Build sdl, gtk and curses as modules.

For now I'm looking for comments especially on the DisplayOptions QAPI type. Is there a more elegant way than the empty DisplayNoOpts struct (see patch #5)?

cheers,
Gerd

Gerd Hoffmann (24):
sdl: remove -no-frame support
sdl: remove -alt-grab and -ctrl-grab support
sdl: use ctrl-alt-g as grab hotkey
vl: rename DisplayType to LegacyDisplayType
gtk: add and use DisplayOptions + DisplayGTK
sdl: use DisplayOptions
vl: drop no_quit variable
egl-headless: use DisplayOptions
curses: use DisplayOptions
cocoa: use DisplayOptions
vl: drop full_screen variable
vl: drop display_type variable
vl: drop request_opengl variable
console: add qemu display registry, add gtk
sdl: hook up to display registry
cocoa: hook up to display registry
curses: hook up to display registry
egl-headless: hook up to display registry
console: add and use qemu_display_find_default
console: add ui module loading support
sdl: build as module
gtk: build as module
curses: build as module
build: opengl should not need X11

 configure             |  17 +++--
 Makefile.objs         |   1 +
 include/qemu/module.h |   1 +
 include/ui/console.h  |  77 +++------------------
 ui/console.c          |  59 ++++++++++++++++
 ui/curses.c           |  14 +++-
 ui/egl-headless.c     |  20 +++++-
 ui/gtk.c              |  45 ++++++++----
 ui/sdl.c              |  89 ++++++++++--------------
 ui/sdl2.c             |  92 ++++++++++++-------------
 vl.c                  | 186 +++++++++++++-------------------------------------
 qapi/ui.json          |  49 +++++++++++++
 ui/Makefile.objs      |  26 ++++---
 ui/cocoa.m            |  16 ++++-
 14 files changed, 348 insertions(+), 344 deletions(-)
Signature · 1 line
2.9.3