Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJQml-0003NW-EG for qemu-devel@nongnu.org; Sat, 12 Dec 2009 07:09:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJQme-0003L9-Lt for qemu-devel@nongnu.org; Sat, 12 Dec 2009 07:09:17 -0500 Received: from [199.232.76.173] (port=42446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJQmd-0003Ka-Hq for qemu-devel@nongnu.org; Sat, 12 Dec 2009 07:09:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50183) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJQmc-0003Jk-TC for qemu-devel@nongnu.org; Sat, 12 Dec 2009 07:09:11 -0500 From: Juan Quintela In-Reply-To: <21d7e9970912120132rd5709d1r3add6a7284eb8c33@mail.gmail.com> (Dave Airlie's message of "Sat, 12 Dec 2009 19:32:07 +1000") References: <21d7e9970912111758m6805a24clca16f237624ffc59@mail.gmail.com> <21d7e9970912111800o40594363r1c7d60c7dbcb7f3c@mail.gmail.com> <21d7e9970912120132rd5709d1r3add6a7284eb8c33@mail.gmail.com> Date: Sat, 12 Dec 2009 13:08:18 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: approaches to 3D virtualisation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dave Airlie Cc: qemu-devel@nongnu.org Dave Airlie wrote: >>> >>> Current existing solutions in the area: >>> a) VMware virtual graphics adapter - based on DX9, has an open >>> KMS/Gallium3D driver stack recently released by vmware, has certified >>> Windows drivers and has a documented vGPU interface (it could be >>> documented a lot better) > > http://vmware-svga.svn.sourceforge.net/viewvc/vmware-svga/trunk/doc/gpu-wiov.pdf?revision=1 > > is a good whitepaper on the different 3D virtualisation approaches and why > vmware picked what they did also. > > Dave. I have zero clue of 3D, but for the qemu part, vmware_vga is the "nicer" driver. On the size department: (virtio-2*)$ wc -l vga.c cirrus_vga.c vmware_vga.c 2380 vga.c 3235 cirrus_vga.c 1211 vmware_vga.c (notice that part of vga.c is used by both vwmare_vga and cirrus_vga). On the features, vmware_vga has a nice feature: xrandr already works (i.e. you can have any modern resolution that you like), cirrus and vga_std have much less options here. vmware_vga also has Xvideo (or something) that improves video support. once telling that, the 3 drivers need a big cleanup. - vga.c -> VBE is optional (#ifdef'd) but you can't compile it out. - cirrus_vga -> uses all vga.c code minus the vbe code. Replicates several big functions (switch) for only changing a couple of lines there. - vmware_vga. Lets say that the way that it embeds an vga is _interesting_ to say the less. Also the vga can be compiled out, but not bios/os on earth will boot without its support. I did some cleanups of the three drivers some months ago, but they need much more care. I didn't follow due to time constraints and my zero knowledge of graphics (hardware/software/...). Later, Juan.