qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ilyes Gouta <ilyes.gouta@gmail.com>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Linux framebuffer emulation in qemu linux-user
Date: Fri, 10 Sep 2010 00:42:26 +0100	[thread overview]
Message-ID: <AANLkTi=Q746E+v8UmpZaWQXPb-wJoUTwa77FCaZu0y5-@mail.gmail.com> (raw)
In-Reply-To: <C449B0AB-FD01-41A0-9249-EAA02F9AF30F@suse.de>

[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]

On Thu, Sep 9, 2010 at 11:57 PM, Alexander Graf <agraf@suse.de> wrote:

>
> On 09.09.2010, at 23:06, Ilyes Gouta wrote:
>
> >
> >
> > On Thu, Sep 9, 2010 at 9:39 PM, Ilyes Gouta <ilyes.gouta@gmail.com>
> wrote:
> > Hi,
> >
> > Well, actually I'd like to run sh4 binaries in linux-user mode, where
> these are actually DirectFB applications which rely on the standard Linux
> framebuffer to display things.
> >
> > In my use case, I'd like to route these ioctl in qemu to be handled by
> the SDL back-end (or even a DirectFB instance running on the host) instead
> of being dispatched to the native framebuffer driver, running on the host.
> >
> > Is this feature available in the current qemu code base?
>
> Please don't top post.
>
> It is not available in qemu and doesn't belong there. Qemu's linux-user
> target really only passes things through. It shouldn't intercept them and
> try to be clever. That's the task of the surrounding stack.
>
> For example in your case, I'd write an LD_PRELOAD that would trap open on
> /dev/fb* and emulates mmap and ioctls to that device. This way you get a
> generic way of displaying fb contents in windows that might be useful for
> other use cases too.
>
> Another thing you could look into is cuse. Maybe you could expose /dev/fb0
> as a cuse device and trap things through that.


Indeed, it sounds a lot more generic. I already started hacking into qemu to
implement (prototype) rerouting the framebuffer ioctls, and it's
surprisingly easy :) If cuse's learning curve isn't stiff, I'll consider
moving my changes into a separate shared library.

Thanks Alex,

-Ilyes






> Alex
>
>

[-- Attachment #2: Type: text/html, Size: 2432 bytes --]

  reply	other threads:[~2010-09-09 23:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 20:19 [Qemu-devel] Linux framebuffer emulation in qemu linux-user Ilyes Gouta
2010-09-09 20:28 ` Blue Swirl
     [not found]   ` <AANLkTimrjxo03qskAae7syDcHrq=frqiG5VnbmcSN8K2@mail.gmail.com>
2010-09-09 21:06     ` Ilyes Gouta
2010-09-09 22:57       ` Alexander Graf
2010-09-09 23:42         ` Ilyes Gouta [this message]
     [not found]     ` <AANLkTi=_bigK_YdHOEw+oedxKyQ5KrQxMTWTyv-HMJGX@mail.gmail.com>
2010-09-09 21:07       ` Ilyes Gouta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=Q746E+v8UmpZaWQXPb-wJoUTwa77FCaZu0y5-@mail.gmail.com' \
    --to=ilyes.gouta@gmail.com \
    --cc=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).