#
0f7b2864 |
| 14-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: gui timer fixes
Make gui update rate adaption code in gui_update() actually work. Sprinkle in a tracepoint so you can see the code at work. Remove the update rate adaption code in vnc and
console: gui timer fixes
Make gui update rate adaption code in gui_update() actually work. Sprinkle in a tracepoint so you can see the code at work. Remove the update rate adaption code in vnc and make vnc simply use the generic bits instead.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
380cd056 |
| 13-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: add GraphicHwOps
Pass a single GraphicHwOps struct pointer to graphic_console_init, instead of a bunch of function pointers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
#
27be5587 |
| 13-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: make DisplayState private to console.c
With gui_* being moved to console.c nobody outside console.c needs access to DisplayState fields any more. Make the struct private.
Signed-off-by: G
console: make DisplayState private to console.c
With gui_* being moved to console.c nobody outside console.c needs access to DisplayState fields any more. Make the struct private.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
98a9ad90 |
| 13-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: move gui_update+gui_setup_refresh from vl.c into console.c
Pure code motion, no functional changes.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
#
2c62f08d |
| 12-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: simplify screendump
Screendumps are alot simpler as we can update non-active QemuConsoles now. So we only need to update the QemuConsole we want write out, then dump the DisplaySurface con
console: simplify screendump
Screendumps are alot simpler as we can update non-active QemuConsoles now. So we only need to update the QemuConsole we want write out, then dump the DisplaySurface content into a ppm file. Done.
No console switching needed. No special support code in the gfx card emulation needed. Zap it all. Also move ppm_save out of the vga code and next to the qmp_screendump function.
For now screen dumping is limited to console #0 (like it used to be), even though it is dead simple to extend it to other consoles. I wanna finish the console cleanup before setting new qapi interfaces into stone.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
show more ...
|
#
321f048d |
| 12-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: give each QemuConsole its own DisplaySurface
Go away from the global DisplaySurface, give one to each QemuConsole instead. With this patch applied it is possible to call graphics_hw_* func
console: give each QemuConsole its own DisplaySurface
Go away from the global DisplaySurface, give one to each QemuConsole instead. With this patch applied it is possible to call graphics_hw_* functions with qemu consoles which are not the current foreground console.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
1dbfa005 |
| 12-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: rename vga_hw_*, add QemuConsole param
Add QemuConsole parameter to vga_hw_*, so the interface allows to update non-active consoles (the actual code can't handle this yet, see next patch).
console: rename vga_hw_*, add QemuConsole param
Add QemuConsole parameter to vga_hw_*, so the interface allows to update non-active consoles (the actual code can't handle this yet, see next patch). Passing NULL is allowed and updates the active console, like the functions do today.
While touching all vga_hw_* calls anyway rename that to the functions to hardware-neutral graphics_hw_*
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
64840c66 |
| 07-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: displaystate init revamp
We have only one DisplayState, so there is no need for the "next" linking, rip it. Also consolidate all displaystate initialization into init_displaystate(). This
console: displaystate init revamp
We have only one DisplayState, so there is no need for the "next" linking, rip it. Also consolidate all displaystate initialization into init_displaystate(). This function is called by vl.c after creating the devices (and thus all QemuConsoles) and before initializing DisplayChangeListensers (aka gtk/sdl/vnc/spice ui).
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
1562e531 |
| 06-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: remove ds_get_* helper functions
Switch the few remaining ds_get_* uses in console.c over to the new surface_* accessors.
While doing so tripped over a few leftovers from commit a93a4a226a
console: remove ds_get_* helper functions
Switch the few remaining ds_get_* uses in console.c over to the new surface_* accessors.
While doing so tripped over a few leftovers from commit a93a4a226a2afba147ba5df688b85d844f537c68 (code using depth == 0 as indicator for textmode rendering). Fixed them up.
Finally dropped ds_get_* helper helpers.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
c78f7137 |
| 05-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: stop using DisplayState in gfx hardware emulation
Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code.
Signed-off-by: Gerd Hoffmann <kraxel@
console: stop using DisplayState in gfx hardware emulation
Use QemuConsole instead. Updates interfaces in console.[ch] and adapts gfx hardware emulation code.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
bc2ed970 |
| 01-Mar-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: zap displaystate from dcl callbacks
Now that nobody depends on DisplayState in DisplayChangeListener callbacks any more we can remove the parameter from all callbacks.
Signed-off-by: Gerd
console: zap displaystate from dcl callbacks
Now that nobody depends on DisplayState in DisplayChangeListener callbacks any more we can remove the parameter from all callbacks.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
626e3b34 |
| 28-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: add surface_*() getters
Add convinence wrappers to query DisplaySurface properties. Simliar to ds_get_*, but operating in the DisplaySurface not the DisplayState.
With this patch in place
console: add surface_*() getters
Add convinence wrappers to query DisplaySurface properties. Simliar to ds_get_*, but operating in the DisplaySurface not the DisplayState.
With this patch in place ui frontents can stop using DisplayState in the rendering code paths, they can simply operate using the DisplaySurface passed in via dpy_gfx_switch callback.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
c12aeb86 |
| 28-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: rework DisplaySurface handling [dcl/ui side]
Replace the dpy_gfx_resize and dpy_gfx_setdata DisplayChangeListener callbacks with a dpy_gfx_switch callback which notifies the ui code when th
console: rework DisplaySurface handling [dcl/ui side]
Replace the dpy_gfx_resize and dpy_gfx_setdata DisplayChangeListener callbacks with a dpy_gfx_switch callback which notifies the ui code when the framebuffer backing storage changes.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
da229ef3 |
| 28-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: rework DisplaySurface handling [vga emu side]
Decouple DisplaySurface allocation & deallocation from DisplayState. Replace dpy_gfx_resize + dpy_gfx_setdata with a dpy_gfx_replace_surface fu
console: rework DisplaySurface handling [vga emu side]
Decouple DisplaySurface allocation & deallocation from DisplayState. Replace dpy_gfx_resize + dpy_gfx_setdata with a dpy_gfx_replace_surface function.
This handles the graphic hardware emulation.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
21ef45d7 |
| 28-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
console: kill DisplayState->opaque
It's broken by design. There can be multiple DisplayChangeListener instances, so they simply can't store state in the (single) DisplayState struct. Try 'qemu -di
console: kill DisplayState->opaque
It's broken by design. There can be multiple DisplayChangeListener instances, so they simply can't store state in the (single) DisplayState struct. Try 'qemu -display gtk -vnc :0', watch it crash & burn.
With DisplayChangeListenerOps having a more sane interface now we can simply use the DisplayChangeListener pointer to get access to our private data instead.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
Revision tags: v1.4.0, v1.4.0-rc2, v1.4.0-rc1, v1.4.0-rc0, v1.3.1, v1.2.2, v1.3.0, v1.3.0-rc2, v1.3.0-rc1, v1.3.0-rc0 |
|
#
7c20b4a3 |
| 13-Nov-2012 |
Gerd Hoffmann <kraxel@redhat.com> |
console: fix displaychangelisteners interface
Split callbacks into separate Ops struct. Pass DisplayChangeListener pointer as first argument to all callbacks. Uninline a bunch of display functions
console: fix displaychangelisteners interface
Split callbacks into separate Ops struct. Pass DisplayChangeListener pointer as first argument to all callbacks. Uninline a bunch of display functions and move them from console.h to console.c
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
show more ...
|
#
702ec69c |
| 25-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
chardev: add vc support to qapi
This patch adds 'vc' support to qapi and also switches over the vc chardev initialization to the new qapi code path.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
#
a4ccabcf |
| 20-Feb-2013 |
Anthony Liguori <aliguori@us.ibm.com> |
ui: add basic GTK gui (v5)
This is minimalistic and just contains the basic widget infrastructure. The GUI consists of a menu and a GtkNotebook. To start with, the notebook has its tabs hidden whi
ui: add basic GTK gui (v5)
This is minimalistic and just contains the basic widget infrastructure. The GUI consists of a menu and a GtkNotebook. To start with, the notebook has its tabs hidden which provides a UI that looks very similar to SDL with the exception of the menu bar.
The menu bar allows a user to toggle the visibility of the tabs. Cairo is used for rendering.
I used gtk-vnc as a reference. gtk-vnc solves the same basic problems as QEMU since it was originally written as a remote display for QEMU. So for the most part, the approach to rendering and keyboard handling should be pretty solid for GTK.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1361367806-4599-4-git-send-email-aliguori@us.ibm.com
show more ...
|
#
d82831db |
| 20-Feb-2013 |
Anthony Liguori <aliguori@us.ibm.com> |
console: allow VCs to be overridden by UI
We want to expose VCs using a VteTerminal widget. We need access to provide our own CharDriverState in order to do this.
Signed-off-by: Anthony Liguori <a
console: allow VCs to be overridden by UI
We want to expose VCs using a VteTerminal widget. We need access to provide our own CharDriverState in order to do this.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-id: 1361367806-4599-3-git-send-email-aliguori@us.ibm.com
show more ...
|
#
b1424e03 |
| 20-Feb-2013 |
Gerd Hoffmann <kraxel@redhat.com> |
vga: fix byteswapping.
In case host and guest endianness differ the vga code first creates a shared surface (using qemu_create_displaysurface_from), then goes patch the surface format to indicate th
vga: fix byteswapping.
In case host and guest endianness differ the vga code first creates a shared surface (using qemu_create_displaysurface_from), then goes patch the surface format to indicate that the bytes must be swapped.
The switch to pixman broke that hack as the format patching isn't propagated into the pixman image, so ui code using the pixman image directly (such as vnc) uses the wrong format.
Fix that by adding a byteswap parameter to qemu_create_displaysurface_from, so we'll use the correct format when creating the surface (and the pixman image) and don't have to patch the format afterwards.
[ v2: unbreak xen build ]
Cc: qemu-stable@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Cc: agraf@suse.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1361349432-23884-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
1de7afc9 |
| 17-Dec-2012 |
Paolo Bonzini <pbonzini@redhat.com> |
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
83c9089e |
| 17-Dec-2012 |
Paolo Bonzini <pbonzini@redhat.com> |
monitor: move include files to include/monitor/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
7b1b5d19 |
| 17-Dec-2012 |
Paolo Bonzini <pbonzini@redhat.com> |
qapi: move include files to include/qobject/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
28ecbaee |
| 28-Nov-2012 |
Paolo Bonzini <pbonzini@redhat.com> |
ui: move files to ui/ and include/ui/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|