On 05/13/10 17:53, Julian Pidancet wrote:
This patch implements a DirectFB driver for QEMU. It allows Qemu to draw a VM graphic output directly in the framebuffer of the host, without having to rely on X11.
Managed to build it after hacking configure to use pkgconfig. Patch attached for reference.
Same bug as SDL on framebuffer: No sane console switching. Boot a guest, switch to another (host) virtual terminal, watch qemu continue drawing on your screen.
Guys, this is simply not acceptable. You are not alone on the machine. If I switch away to another virtual terminal I want to see that other terminals content and nothing else.
NACK. cheers, Gerd
>From 50f26301ba1f8a0588fcafc54b05fe508e084696 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann <kra...@redhat.com> Date: Mon, 17 May 2010 13:54:59 +0200 Subject: [PATCH] fixups --- configure | 18 +++++++++++++----- qemu-options.hx | 3 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/configure b/configure index b453e85..de4bf8f 100755 --- a/configure +++ b/configure @@ -258,7 +258,7 @@ kvm="" kvm_para="" nptl="" sdl="" -directfb="no" +directfb="" sparse="no" uuid="" vde="" @@ -1071,10 +1071,18 @@ fi ########################################## # DirectFB probe -if test "$directfb" = "yes" ; then - directfb_libs=`directfb-config --libs` - directfb_cflags=`directfb-config --cflags` - libs_softmmu="$directfb_libs $libs_softmmu" +if test "$directfb" != "no" ; then + if $pkgconfig directfb; then + directfb_libs=$($pkgconfig directfb --libs) + directfb_cflags=$($pkgconfig directfb --cflags) + libs_softmmu="$directfb_libs $libs_softmmu" + directfb=yes + else + if test "$directfb" = "yes" ; then + feature_not_found "directfb" + fi + directfb=no + fi fi ########################################## diff --git a/qemu-options.hx b/qemu-options.hx index a4bdfbe..9597a48 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -610,7 +610,8 @@ ETEXI #ifdef CONFIG_DIRECTFB DEF("directfb", 0, QEMU_OPTION_directfb, - "-directfb enable DirectFB\n") + "-directfb enable DirectFB\n", + QEMU_ARCH_ALL) #endif STEXI @item -directfb -- 1.6.6.1