Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKIje-0003Ba-Oq for qemu-devel@nongnu.org; Tue, 06 Jan 2009 15:41:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKIjb-00038G-UB for qemu-devel@nongnu.org; Tue, 06 Jan 2009 15:41:10 -0500 Received: from [199.232.76.173] (port=50562 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKIjb-000386-Pg for qemu-devel@nongnu.org; Tue, 06 Jan 2009 15:41:07 -0500 Received: from gmp-eb-inf-1.sun.com ([192.18.6.21]:60675) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LKIjb-0004lV-94 for qemu-devel@nongnu.org; Tue, 06 Jan 2009 15:41:07 -0500 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n06KeoAs021147 for ; Tue, 6 Jan 2009 20:41:04 GMT Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KD200K01HALT600@fe-emea-09.sun.com> (original mail from Frank.Mehnert@Sun.COM) for qemu-devel@nongnu.org; Tue, 06 Jan 2009 20:40:50 +0000 (GMT) Received: from vpn-129-150-124-82.germany.sun.com ([129.150.124.82]) by fe-emea-09.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KD200J6YHG1GB10@fe-emea-09.sun.com> for qemu-devel@nongnu.org; Tue, 06 Jan 2009 20:40:50 +0000 (GMT) Date: Tue, 06 Jan 2009 21:40:40 +0100 From: Frank Mehnert Subject: Re: [Qemu-devel] Merging improvements from VirtualBox OSE into qemu? In-reply-to: <49639605.4060403@codemonkey.ws> Sender: Frank.Mehnert@Sun.COM Message-id: <200901062140.46557.frank.mehnert@sun.com> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=nextPart1261001.7J3VUaSbeP Content-transfer-encoding: 7BIT References: <49522F8D.4000203@turnkeylinux.org> <200901060841.58772.frank.mehnert@sun.com> <49639605.4060403@codemonkey.ws> 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 --nextPart1261001.7J3VUaSbeP Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 06 January 2009, Anthony Liguori wrote: > Frank Mehnert wrote: > > Do you really know our public SVN? The majority of the code was written > > from scratch and the most interesting parts are available for public > > re-use. > > My main concern is the device model code and that code is either from > QEMU, Bochs, of VGABIOS. The stuff written from scratch (SATA and OHCI > support) is not available publicly. AFAIK, the following public available (VBox-OSE) device emulations and host backends were written from scratch (this is our Devices/ directory): * the PIIX3/PIIX4 ATA controller (almost completely rewritten, you might find 5% of the code in the QEMU ATA emulation) * the generic block layer * support for access to host CD/DVD mediums inclusive SCSI command passthrough * backends for VDI, VMDK, VHD file formats * the PulseAudio backend * the Solaris audio backend * the ICH AC97 audio controller * the network sniffer (creates wireshark-compatible capture files) * the VM-internal network backend * the TAP device backend * the host network interface driver * the UART device + backends for named pipes and host ports * the VBox guest device =46urthermore we used QEMU code from the PCnet emulation, the VGA device, the slirp NAT engine and more. Indeed, we had to change the code heavily to make it fit to our needs. For instance, the PCnet emulation got a send queue to speed up sending. And of course we execute a remarkable part of the device emulation code in the guest context. These changes are only examples, there are more. These changes are (in most cases) no bug fixes but adaptions of the original code to our environment and improvements which could not easily applied to QEMU due to the different infrastructure. > There's a lot of divergence and a lot of code restructuring (especially > in the VGA code) that makes merging cherry picking stuff extremely > difficult. Most of the changes make no attempt to maintain consistency > with the rest of QEMU. As I tried to explain in the previous E-mail and above, the restructuration was necessary due to the different requirements of VirtualBox. Please don't blame us for adapting code to our needs. Not to forget the different coding style. VBox has a uniform coding style which is very different from QEMU, and this makes it more difficult to exchange code between these projects. > If ya'll are interested in merging stuff back upstream, then I'm happy > to work with you on it. It seems like a huge task though and, as I've > said, I've seen no effort or interest from Sun on this. It's really > unfortunate because there have been many bugs found in Xen, KVM, or QEMU > that I've gone back and seen fixes for already in VirtualBox. Likewise, > there are fixes in QEMU/Xen/KVM that are not in VirtualBox. It's a huge > amount of wasted effort. Your original claim was that innotek/Sun used code from QEMU but does not make bug fixes / improvements / code written from scratch available to QEMU. You are right that there _is_ duplicate work. Unfortunately we don't have enough ressources to employ people to adapt VirtualBox code to make it work with QEMU. But nobody prevents you or other QEMU hackers to go through our changesets and pick up bug fixes and port them back to QEMU. We do the the same with the QEMU code to get fixes into VirtualBox (and we should do this much more often). Kind regards, =46rank =2D-=20 Dr.-Ing. Frank Mehnert Sun Microsystems http://www.sun.com/ --nextPart1261001.7J3VUaSbeP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkljwcgACgkQ6z8pigLf3Eeu2gCeM0oWoqXKKv9YhQA5leRmhIlE jJsAn3tW+nHDIN1EildzjuSL9n4wDWFP =GcSp -----END PGP SIGNATURE----- --nextPart1261001.7J3VUaSbeP--