qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Add virtual devices to QEMU


From: Andreas Färber
Subject: Re: [Qemu-devel] Add virtual devices to QEMU
Date: Wed, 27 Jun 2012 18:32:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0

Am 26.06.2012 10:27, schrieb Stefan Hajnoczi:
> On Mon, Jun 25, 2012 at 7:58 PM, Alberich de megres
> <address@hidden> wrote:
>> Thank you guys for the reply :)
>>
>> One last question,
>> my device is like a physical console with buttons and indicators.
>>
>> I saw the android emulator also draws the keyboard using a modified
>> version of the qemu.
>> Is there some kind of "presentation" layer, or the just modified the
>> window size and add it there? do you know how does it works?
> 
> Mainline QEMU does not have a skinnable UI and in fact has several
> different graphical backends (SDL, VNC) which would make this a little
> tricky to do generically.
> 
> As an alternative, you could add non-graphical QEMU monitor commands
> (which are great because you can easily automate and test from
> scripts!).  See qapi-schema.json and docs/writing-qmp-commands.txt.
> For an example, see the "sendkey" command implemented in
> monitor.c:do_sendkey().  You can use this command to simulate
> keypresses like "sendkey ctrl-alt-del".
> 
> I imagine adding a monitor command is more useful for prototyping and
> developing than making a custom UI.

Two additional thoughts:

One of the mips machines (malta?) has a display that shows LEDs or
something in a console-like output on another "screen"
(Ctrl+Alt+somenumber). You might want to check how that is implemented.

Emulated graphics cards draw to a "DisplayState". If you really want to
have graphical output you could mimick a graphics card by drawing your
UI into this kind of framebuffer. It can then be displayed by all
supported graphics backends (SDL, VNC, Cocoa, soon Gtk+).

Andreas

P.S. Please avoid top-posting. :)

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]