* [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular?
@ 2015-06-22 12:00 Michael Tokarev
2015-06-22 12:34 ` Paolo Bonzini
2015-06-22 15:24 ` Gerd Hoffmann
0 siblings, 2 replies; 3+ messages in thread
From: Michael Tokarev @ 2015-06-22 12:00 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hello.
What's the current status of SDL2 and GTK support?
Last time I checked and asked, there were some missing
pieces in SDL2 compared with SDL1, basically making
SDL2 unusable (again, compared with SDL1).
GTK backend, besides the menu, does not add any noticeable
functionality to SDL1 interface, but adds a lot of extra
dependencies. This, and also the fact that at least
initial GTK support was incomplete, was the reasons why
in Debian we didn't change default display backend from
SDL1 to GTK when qemu changed the default.
Now I wonder if we can finally switch to SDL2 and/or to
GTK, and maybe even make the display backend dynamically
loadable in the same way as block device backends are
these days.
With loadable display backend it will be the last bastion
for many people who are asking for "minimal QEMU for
servers" which is supposed to not have any X deps.
I started working on loadable display backend a few
years ago, but quickly discovered that SDL1 can't be
loaded dynamically, at least on some platforms where
it substitutes main() function in order to do some
initialization (as if there's no support for constructors).
So now I'm asking again whenever current GTK and SDL2
supports are complete enough to replace SDL1.
Thanks,
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular?
2015-06-22 12:00 [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular? Michael Tokarev
@ 2015-06-22 12:34 ` Paolo Bonzini
2015-06-22 15:24 ` Gerd Hoffmann
1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2015-06-22 12:34 UTC (permalink / raw)
To: Michael Tokarev, qemu-devel; +Cc: Gerd Hoffmann
On 22/06/2015 14:00, Michael Tokarev wrote:
> With loadable display backend it will be the last bastion
> for many people who are asking for "minimal QEMU for
> servers" which is supposed to not have any X deps.
> I started working on loadable display backend a few
> years ago, but quickly discovered that SDL1 can't be
> loaded dynamically, at least on some platforms where
> it substitutes main() function in order to do some
> initialization (as if there's no support for constructors).
>
> So now I'm asking again whenever current GTK and SDL2
> supports are complete enough to replace SDL1.
SDL2 audio is broken, so strictly speaking no.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular?
2015-06-22 12:00 [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular? Michael Tokarev
2015-06-22 12:34 ` Paolo Bonzini
@ 2015-06-22 15:24 ` Gerd Hoffmann
1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2015-06-22 15:24 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-devel
Hi,
> With loadable display backend it will be the last bastion
> for many people who are asking for "minimal QEMU for
> servers" which is supposed to not have any X deps.
> I started working on loadable display backend a few
> years ago, but quickly discovered that SDL1 can't be
> loaded dynamically, at least on some platforms where
> it substitutes main() function in order to do some
> initialization (as if there's no support for constructors).
>
> So now I'm asking again whenever current GTK and SDL2
> supports are complete enough to replace SDL1.
I don't miss any features in sdl2/gtk.
I think gtk should work reasonable well meanwhile as it is the default
and thus used alot.
Not so sure about sdl2. sdl1 is still the default, so I don't think
there are that many users of it, which increases the chance that there
are unnoticed bugs and regressions lurking ...
Loadable display modules are worth looking into nevertheless. We need
some kind of interface to register UIs, simliar to blockdevs and
devices. But we have interesting constrains here:
* You can have multiple UIs active at the same time (gtk+vnc).
* That doesn't work for every combination though (no gtk+sdl).
* There are deps to other stuff such as audio (sdl+spice) and
display (spice/qxl).
So getting that modeled right isn't that easy and straightforward.
If you wanna have a look nevertheless you are welcome ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-22 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-22 12:00 [Qemu-devel] Status of SDL2 and GTK displays: can we make display modular? Michael Tokarev
2015-06-22 12:34 ` Paolo Bonzini
2015-06-22 15:24 ` Gerd Hoffmann
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).