From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKCFq-00059D-4G for qemu-devel@nongnu.org; Mon, 14 Dec 2009 09:50:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKCFl-000523-Ck for qemu-devel@nongnu.org; Mon, 14 Dec 2009 09:50:29 -0500 Received: from [199.232.76.173] (port=38831 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKCFl-00051j-4A for qemu-devel@nongnu.org; Mon, 14 Dec 2009 09:50:25 -0500 Received: from mail-yx0-f188.google.com ([209.85.210.188]:46206) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKCFk-0005l3-W4 for qemu-devel@nongnu.org; Mon, 14 Dec 2009 09:50:25 -0500 Received: by yxe26 with SMTP id 26so2946408yxe.4 for ; Mon, 14 Dec 2009 06:50:24 -0800 (PST) Message-ID: <4B2650AC.6070407@codemonkey.ws> Date: Mon, 14 Dec 2009 08:50:20 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Spice project is now open References: <20091211213911.0dce90dc@redhat.com> <4B22A2D9.6020602@codemonkey.ws> <20091211223250.129675fc@redhat.com> <4B22B035.3010601@codemonkey.ws> <20091211233158.22e6681f@redhat.com> <4B22C093.2090806@codemonkey.ws> <4B231182.1080208@codemonkey.ws> <20091212144433.GA26966@random.random> <4B23B0BE.7080408@codemonkey.ws> <20091212160626.GB26966@random.random> <4B23D585.70400@codemonkey.ws> <4B241A99.2000704@redhat.com> <4B264E4D.2000502@redhat.com> In-Reply-To: <4B264E4D.2000502@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Andrea Arcangeli , Paolo Bonzini , dlaor@redhat.com, qemu-devel@nongnu.org Gerd Hoffmann wrote: > On 12/12/09 23:35, Dor Laor wrote: >> 2. VDI (Virtual Desktop Interface) >> http://www.spice-space.org/vdi.html >> It's an abstraction layer for graphics/keyboard/mouse/sound >> /usb/serial. >> We need it anyway regardless of spice. What is our user like to >> switch from vnc to SDL on runtime? It's good for usb-over-ip for >> remoting, for various mouse modes, etc. > > What does spice need which isn't present in qemu today? > > You can start qemu with both sdl and vnc enabled. Graphic output is > sent to both. Keyboard and mouse input is accepted from both. Sound > via vnc works too. > > What doesn't work: usb + chardevs (i.e. serial console), so we need > some interface here. For graphics spice probably needs a different > interface than the existing for a stupid framebuffer with copyrect > op. I don't see a need for new keyboard/mouse/sound interfaces though. (Looking at spice-space.org), VDI seems to be a whole lot more than just a graphics thing. It looks a plugin interface for qemu as it incorporates things like fd registration, timer registration, etc. I don't think it's really needed verses just integrating spice support directly. I don't quite understand the relationship between spice and vdi though. If libspice implements a VDI interface directly and that's what it expects people to write against verses vdi existing solely for interaction with qemu. If the later is the case, then it's probably an unnecessary abstraction. If the former is the case, then it's just the api we have to live with. Of course, you could use something like VDI to separate out the vnc server into a more well defined module. However, I'd suggest separating that modularity effort from the integration of spice. Either do that starting with the vnc server, then add spice, or add spice with tight integration, and then build a common interface. The later is probably better since it gives you more clear requirements for the interface. Regards, Anthony Liguori