Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJGT2-0006AE-EL for qemu-devel@nongnu.org; Fri, 11 Dec 2009 20:08:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJGSx-000696-OC for qemu-devel@nongnu.org; Fri, 11 Dec 2009 20:08:16 -0500 Received: from [199.232.76.173] (port=59200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJGSx-000693-6f for qemu-devel@nongnu.org; Fri, 11 Dec 2009 20:08:11 -0500 Received: from cantor.suse.de ([195.135.220.2]:35410 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJGSw-0001yp-FY for qemu-devel@nongnu.org; Fri, 11 Dec 2009 20:08:10 -0500 Subject: Re: [Qemu-devel] Spice project is now open Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <20091212025315.2188acf5@redhat.com> Date: Sat, 12 Dec 2009 02:08:05 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1393046876.1549021260539141025.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> <4B226BFC.1040606@codemonkey.ws> <20091211204828.464707cf@redhat.com> <4B2297A2.8040102@codemonkey.ws> <20091211212135.645864f9@redhat.com> <4B229DCE.7070500@codemonkey.ws> <20091211213911.0dce90dc@redhat.com> <4B22A2D9.6020602@codemonkey.ws> <20091211222101.5e924d20@redhat.com> <4B22AFBF.6080709@codemonkey.ws> <20091211231334.3d8a599f@redhat.com> <8BF07900-1F21-4E1C-AFC7-FF9CC47525A3@suse.de> <20091212004635.0b57a8c0@redhat.com> <20091212021448.60dd3463@redhat.com> <20091212025315.2188acf5@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Izik Eidus Cc: Yaniv Kamay , qemu-devel@nongnu.org On 12.12.2009, at 01:53, Izik Eidus wrote: > On Sat, 12 Dec 2009 01:27:09 +0100 > Alexander Graf wrote: >=20 >>=20 >> On 12.12.2009, at 01:14, Izik Eidus wrote: >>=20 >>> On Sat, 12 Dec 2009 00:54:47 +0100 >>> Alexander Graf wrote: >>>=20 >>>>=20 >>>> On 11.12.2009, at 23:46, Izik Eidus wrote: >>>>=20 >>>>> On Fri, 11 Dec 2009 23:08:01 +0100 >>>>> Alexander Graf wrote: >>>>>=20 >>>>>>=20 >>>>>> On 11.12.2009, at 22:13, Izik Eidus wrote: >>>>>>=20 >>>>>>> On Fri, 11 Dec 2009 14:46:55 -0600 >>>>>>> Anthony Liguori wrote: >>>>>>>=20 >>>>>>>> Izik Eidus wrote: >>>>>>>>> I personaly dont like mjpeg, and yes in the end of the day you >>>>>>>>> can add the video streaming into vnc, but what is the point >>>>>>>>> here? >>>>>>>>>=20 >>>>>>>>=20 >>>>>>>> What I'm trying to understand is, what can we do with Spice >>>>>>>> that we couldn't possibly do with vnc. That means >>>>>>>> understanding each feature and then figuring out if there's a >>>>>>>> vnc analog. >>>>>>>>=20 >>>>>>>> If there are compellingly unique features to Spice that can't >>>>>>>> be duplicated in vnc, then it's a no brainer. If you can do >>>>>>>> most things in vnc but it would be hackish whereas Spice makes >>>>>>>> it all elegant, then provided we can merge Spice without a >>>>>>>> huge amount of pain, then it's a net win. >>>>>>>>=20 >>>>>>>> However, if we need to make a few changes to vnc in order to >>>>>>>> get the same performance as Spice, then it's not quite as >>>>>>>> clear that it's what we should be using. >>>>>>>>=20 >>>>>>>> We're talking about a major change here. There is a ton of >>>>>>>> management software that assumes vnc today. Even though there >>>>>>>> are Spice clients out there, there are embedded vnc clients in >>>>>>>> certain tools today along with java applets. >>>>>>>>=20 >>>>>>>> That's not to say we shouldn't embrace Spice, we just have to >>>>>>>> make sure we have a good reason to. >>>>>>>=20 >>>>>>> Ok, I understand your concerns. >>>>>>>=20 >>>>>>> But even though that spice and vnc achive in the end of the day >>>>>>> the same thing - they both allow remote rendering, they have >>>>>>> fendumental diffrent architacture. >>>>>>>=20 >>>>>>> Spice server work with a ring to the guest, it was build from >>>>>>> day one to work like that, In addition it was built from day >>>>>>> one so that the server will render only what it must to render >>>>>>> (to allow much higher virtualization denticity). >>>>>>=20 >>>>>> The ring is from qemu <-> guest, right? I mean, qemu <-> client >>>>>> would be a TCP transport anyways, so the ring argument is void. >>>>>=20 >>>>>=20 >>>>> Beside the fact that we dont have the network overhead... >>>>=20 >>>> Eh - when you connect to the VM remotely you still get the network >>>> overhead, because you're connecting to it via the network :-). >>>=20 >>> Yes but you send the data from the HOST networking, not from the >>> virtualized guest networking (That will later send it from the Host >>> networking)... >>=20 >> Exactly. So you'd get the same as with virtio-fb and VNC :-). >=20 > Yes, virtio-fb and spice have the same overhead for the ring part, > but this not what i understood when you said: > "The ring is from qemu <-> guest, right? I mean, qemu <-> client > would be a TCP transport anyways, so the ring argument is void." Oh one of your arguments about the superiority of SPICE was that it uses = a ring buffer. I just wanted to make sure you're talking about the guest = <-> hypervisor interface there, thus not stressing anything in the SPICE = protocol :-). >=20 > But leave it :). >=20 >>=20 >>>=20 >>>=20 >>>>=20 >>>>>=20 >>>>>>=20 >>>>>>> Just to make clear how much spice is diffrence from VNC is by >>>>>>> the fact that only the library itself (not including the >>>>>>> drivers) have 128,277 lines of code inside it. (In my old qemu >>>>>>> repo i see almost 600,000 lines for qemu) so this should give >>>>>>> better prespective on how much spice is diffrent from vnc. >>>>>>>=20 >>>>>>> So ofcurse in theory you can take all this 128,000 lines and >>>>>>> push them into qemu-vnc.c ?, but you got to remember that spice >>>>>>> is not just specific qemu thing, Spice should be used to work >>>>>>> on physical machines too, just cutting all this lines of code >>>>>>> from spice and throw it into qemu-vnc.c will be meaning a fork >>>>>>> of spice inside qemu.... >>>>>>=20 >>>>>> I definitely understand your point of having a single protocol. >>>>>> The good news is that your physical machine stuff isn't released >>>>>> yet (AFAIK), so luckily there's still time to change parts of the >>>>>> protocol :-). >>>>>>=20 >>>>>>> It isnt just the rings and the rendering style that make spice >>>>>>> diffrence, it is the channels it have for each compoment, it is >>>>>>> the multiple drawing surfaces, and so on... >>>>>>=20 >>>>>> These should be fairly easy to implement in VNC too. In fact, I >>>>>> remember a project implementing off-screen drawing in VNC using a >>>>>> larger region of the screen than what was visible and then >>>>>> copyrect them in. >>>>>=20 >>>>> In theory you can even change the whole of VNC into SPICE or the >>>>> whole of VI into EMACS, so???, I personaly think changing code >>>>> isnt the problem, the problem is always the desgien, and SPICE >>>>> have fandumental diffrent desgien than VNC, (Here you can say: OK >>>>> I can make my VNC desgien like SPICE, or you can say I think >>>>> SPICE dsgien is bad, or you can just use SPICE...) >>>>=20 >>>> Oh I'm not trying to talk you or anyone into anything. I was merely >>>> trying to stress that SPICE isn't really its own protocol but >>>> extensions to the RDP protocol (IIUC). You could do similar >>>> extensions to VNC if you liked. Thus I'd love to see a generic >>>> mid-layer and implementations of RDP and VNC on top of that >>>> actually. >>>=20 >>> One of the decisions we have made in SPICE, was to provide a full >>> functional remote system, not realying on other system, >>> We already have far more features than VNC have, so what is the >>> logical in making spice extention of VNC? it more logical to make >>> VNC extention of SPICE... >>>=20 >>> SPICE have networking tunneling, local/server mouse, (in progress) >>> usb remote, audio / recording channel , private channels for each >>> compoment, Even if VNC would have part of this stuff, It seems like >>> they are trying to achive things in diffrent way than SPICE does. >>=20 >> It kind of reminds me of the vbus story ;-). >>=20 > We are not forking qemu, we are self depended protocol, we have the > right to implment the protocol the best way as we understand, I don`t > see much connection with the VBus case... >=20 > The real interesting part is, that we not forcing any changes to qemu, > we dont say "throw" vnc, we just add another protocol, that users > already are using and are very happy. > check out: >=20 > = http://www.brianmadden.com/blogs/brianmadden/archive/2009/12/10/red-hat-ma= kes-the-qumranet-spice-protocol-open-source-a-free-alternative-to-ica-pcoi= p.aspx >=20 > Why is it that bad to allow user freedom of choice for whatever > protocol it want to use for its remote system? Nothing at all! I want to make it even more modular. I want to see a = lego like approach where we can combine all the good parts together and = use whatever we like from whatever corner we come from. So the thing I dislike is the "take all of QXL and SPICE or leave = everything" sort of attitude that's coming over. I'd love to use QXL, = but I don't want to use SPICE :-). Thus I want to make sure we're going = in a really modular direction, so all the bits can be combined to every = users' liking. Thus creating choice. Alex=