From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Mulyadi Santosa <mulyadi.santosa@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM
Date: Mon, 26 Oct 2009 11:17:43 -0500 [thread overview]
Message-ID: <4AE5CBA7.80007@codemonkey.ws> (raw)
In-Reply-To: <4AE5C981.3060307@redhat.com>
Avi Kivity wrote:
> On 10/26/2009 05:49 PM, Anthony Liguori wrote:
>> A user starts a VM at a physical box. Everythings fine but he wants
>> to return to his workstation so he closes the window. He goes back
>> to his workstation and connects to a VNC server (on a different X
>> server). He wants to now bring up the guest's display.
>
> Users don't have boxes. They have computers. They don't want to open
> VNC clients and type in meaningless numerical addresses. They do want
> GUIs which fit with the OSes theme, cut'n'paste, printing, and shared
> storage, all easily configurable.
You misunderstood. The VNC session is to the users remote desktop. But
drop VNC for a minute, this is the same thing as just closing the window
because the VM runs all day and you don't need to see it's display.
Like I said, I've never been convinced that this is critical but it's
always been a very vocal argument against more GUI functionality.
>> This cannot be achieved with a gui in the same process as qemu. Is
>> it necessary to support? I don't know.
>
> In the priority list this is about 3000 places below having nice
> buttons to eject and insert a CDROM. A user with a "box" would
> probably want to run the guest on a server (and use vnc, etc.).
I do agree with you.
>> I'd love to just replace the SDL display with GTK + Cairo. I'm even
>> somewhat inclined to suggest linking to python so that the gui can be
>> written in python...
>
> Best would be to just export a QObject binding to scripting languages,
> which could then be used to implement GUIs outside the qemu source
> base. The only tricky part is how to deal with the display. Can we
> expose the display as a special QDict?
I'd expose the display as a GTKWidget derivative. We would load a
python program and it could instantiate the widget because we've already
loaded it. I wouldn't bother with QObject at all. Just setup an easy
way to use QMP from within Python using the natural python types.
The trick only real trick is that the python script has to be launched
from a separate thread because Python isn't asynchronous and has a big
lock at the binding level. But it works well if you have a socketpair
with QMP that is used from the Python thread.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-10-26 16:17 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 16:24 [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM Mulyadi Santosa
2009-10-19 22:20 ` Anthony Liguori
2009-10-20 3:16 ` Mulyadi Santosa
2009-10-20 7:58 ` Gerd Hoffmann
2009-10-20 8:12 ` Daniel P. Berrange
2009-10-20 10:40 ` Kevin Wolf
2009-10-20 16:59 ` Anthony Liguori
2009-10-20 17:08 ` Daniel P. Berrange
2009-10-20 22:14 ` Mulyadi Santosa
2009-10-21 7:27 ` Kevin Wolf
2009-10-21 13:52 ` Glauber Costa
2009-10-21 16:04 ` Mulyadi Santosa
2009-10-21 16:24 ` Glauber Costa
2009-10-21 16:44 ` Mulyadi Santosa
2009-10-21 16:48 ` Glauber Costa
2009-10-21 18:35 ` Jamie Lokier
2009-10-22 14:40 ` Luiz Capitulino
2009-10-22 15:02 ` Kevin Wolf
2009-10-22 16:32 ` Luiz Capitulino
2009-10-22 15:40 ` Anthony Liguori
2009-10-22 16:38 ` Luiz Capitulino
2009-10-22 18:32 ` Anthony Liguori
[not found] ` <m33a5bj851.fsf@neno.mitica>
2009-10-23 7:40 ` [Qemu-devel] " Kevin Wolf
2009-10-23 11:23 ` Mulyadi Santosa
2009-10-23 11:45 ` Kevin Wolf
2009-10-23 13:59 ` Anthony Liguori
2009-10-23 14:36 ` Kevin Wolf
2009-10-25 15:28 ` Avi Kivity
2009-10-25 15:44 ` Luiz Capitulino
2009-10-26 13:45 ` Anthony Liguori
2009-10-26 14:13 ` Avi Kivity
2009-10-26 15:04 ` Anthony Liguori
2009-10-26 15:07 ` Avi Kivity
2009-10-26 15:49 ` Anthony Liguori
2009-10-26 16:08 ` Avi Kivity
2009-10-26 16:17 ` Anthony Liguori [this message]
2009-10-27 9:11 ` Gerd Hoffmann
2009-10-27 9:28 ` Avi Kivity
2009-10-21 16:55 ` [Qemu-devel] " Anthony Liguori
2009-10-21 17:01 ` Mulyadi Santosa
2009-10-21 17:04 ` Glauber Costa
2009-10-21 18:08 ` Anthony Liguori
2009-10-22 7:58 ` Kevin Wolf
[not found] <E1N2mhd-0003dq-N6@pih-inmx13.plus.net>
2009-10-28 3:11 ` [Qemu-devel] " Gervase Lam
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=4AE5CBA7.80007@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kwolf@redhat.com \
--cc=mulyadi.santosa@gmail.com \
--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).