From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs and Xen Date: Mon, 16 Nov 2015 17:13:28 -0500 Message-ID: <20151116221328.GA22014@char.us.oracle.com> References: <20151116205241.GC5306@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <20151116205241.GC5306@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Nov 16, 2015 at 10:52:41PM +0200, Pasi K=E4rkk=E4inen wrote: > Hello, > = > It seems upstream Linux/Gallium3D/Mesa/Qemu/KVM has recently gained virtu= alized support for 3D/OpenGL hardware acceleration in VMs, allowing using t= he GPU of the host in VMs. > = > Components: > - Linux 4.4 kernel includes the DRM driver for VirtIO-GPU 3D acceleratio= n (needed in the VM). > - Qemu 2.5 (rc0) includes the VirtIO-GPU 3D mode support (needed on the = host/dom0). > - Gallium3D VirGL driver is included in Mesa git (needed in the VM, supp= orts up to OpenGL 3.3 atm). > - On the host/dom0 one needs *any* OpenGL driver (for the host GPU obvio= usly), no special requirements there, if I understood correctly. > = > = > Has someone looked into this already? How much work would it be to get Vi= rtIO-GPU working in Xen HVM guests? = Are there any instructions on how to make this work? Looks like: CONFIG_DRM_VIRTIO_GPU needs to be set. In the host/dom0 one would need to get the latest version of QEMU for build (easy, just change the Config.mk to point to the upstream qemu repo) And then the syntax in the guest. I presume that 'sdl=3D1\nopengl=3D1' woul= d need to be set and also some of device_model_args_hvm=3DXX magic. That 'XX' magic should be whatever is needed for QEMU to expose this VirtIO= driver? = Looking at https://www.kraxel.org/blog/tag/virtio-gpu/ It looks to be: -set device.video0.driver=3Dvirtio-vga -display gtk,gl=3Don= ? > = > = > Thanks, > = > -- Pasi > = > = > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel