From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcjXi-0006Kk-Pq for qemu-devel@nongnu.org; Mon, 08 Sep 2008 12:24:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcjXf-0006J1-4a for qemu-devel@nongnu.org; Mon, 08 Sep 2008 12:24:46 -0400 Received: from [199.232.76.173] (port=47195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcjXe-0006Iw-Sg for qemu-devel@nongnu.org; Mon, 08 Sep 2008 12:24:42 -0400 Received: from mx2.redhat.com ([66.187.237.31]:38246) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcjXe-0000nd-GB for qemu-devel@nongnu.org; Mon, 08 Sep 2008 12:24:42 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m88GO4fq016092 for ; Mon, 8 Sep 2008 12:24:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m88GNr65003040 for ; Mon, 8 Sep 2008 12:23:54 -0400 Received: from zweiblum.travel.kraxel.org (vpn-4-95.str.redhat.com [10.32.4.95]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m88GNqLs031385 for ; Mon, 8 Sep 2008 12:23:53 -0400 Message-ID: <48C55198.9020209@redhat.com> Date: Mon, 08 Sep 2008 18:23:52 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] opengl rendering in the sdl window References: <20080905120214.GD1373@shareable.org> <48C16207.5090808@eu.citrix.com> <20080905165536.GA12606@redhat.com> <48C168CE.5040700@eu.citrix.com> <48C348D3.6070702@codemonkey.ws> <20080908134140.GF4947@shareable.org> <20080908134833.GQ2315@redhat.com> <48C53D24.8030803@redhat.com> <20080908150759.GB8465@shareable.org> <48C5463D.8090005@redhat.com> <20080908153951.GA9282@shareable.org> In-Reply-To: <20080908153951.GA9282@shareable.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Jamie Lokier wrote: > Gerd Hoffmann wrote: >> Or use the monitor, which the gui needs anyway to implement the nice >> control buttons for the user. Which would it make easier to re-attach >> the gui to the vm as all you need to know is where the monitor is ... > > You want to transmit the image or the image-blit-please protocol over > the monitor connection? Negotiate a shared memory segment somehow, then send just notifications. Have to think about how to to that in detail, ideally this would be a shared memory segment shared by all three instances involved: the gui process, the qemu process and the X-Server. So qemu can render directly into a XShmImage, although it has no (direct) connection to the X-Server. > I think the monitor would need a few > improvements before it could do that well. Sure, we'll need (a) multiple connections at the same time and (b) some "select " command for async notify for that. I think they will come anyway for several other reasons. > A nice thing about VNC-SHM would be the GUI could run on a different > machine to the emulator (SHM not used then), since it only needs VNC > and monitor, which can both be remote. For the remote case it certainly doesn't make sense to reinvent VNC. But you'll probably use some management layer like libvirt anyway then, ssh'ing into the remote machine for starting / stopping VM's isn't very handy. I'm targeting the local desktop use case. But maybe vnc + shmem-extention works equally well here. cheers, Gerd