From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV9By-0004Pd-TA for qemu-devel@nongnu.org; Sun, 14 Feb 2016 21:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV9Bv-0002Rt-N8 for qemu-devel@nongnu.org; Sun, 14 Feb 2016 21:47:14 -0500 Received: from mx5-phx2.redhat.com ([209.132.183.37]:52495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV9Bv-0002Ro-Fv for qemu-devel@nongnu.org; Sun, 14 Feb 2016 21:47:11 -0500 Date: Sun, 14 Feb 2016 21:47:05 -0500 (EST) From: David Airlie Message-ID: <884678637.28458711.1455504425694.JavaMail.zimbra@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Saket Sinha Cc: kvm@vger.kernel.org, dri-devel@lists.freedesktop.org, qemu-devel@nongnu.org ----- Original Message ----- > From: "Saket Sinha" > To: dri-devel@lists.freedesktop.org, kvm@vger.kernel.org, qemu-devel@nongnu.org > Cc: "Dave Airlie" > Sent: Monday, 15 February, 2016 12:34:18 PM > Subject: VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs > > Hi, > > It seems upstream Linux/Gallium3D/Mesa/Qemu/KVM has recently gained > virtualized support for 3D/OpenGL hardware acceleration in VMs, > allowing using the GPU of the host in VMs. > > As per my understanding the following components are needed - > > - Linux 4.4 kernel includes the DRM driver for VirtIO-GPU 3D > acceleration (needed in the VM). > - Qemu 2.5 includes the VirtIO-GPU 3D mode support. In qemu 2.5 only gtk3 frontend support 3D and must be enabled with gl=on > - Gallium3D VirGL driver is included in Mesa git (needed in the VM, > supports up to OpenGL 3.3 atm). > - On the host *any* OpenGL driver (for the host GPU obviously), no > special requirements there. > > In order to do test this, if I can be guided as to what are the right > applications to test the entire Graphic stack on a QEMU-KVM Virtual > machine, I shall be grateful. glxinfo in the guest should print virgl in the renderer string, that is enough to know the stack is functioning. if it shows llvmpipe it isn't. Dave.