xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: xen-devel@lists.xen.org
Subject: Re: VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs and Xen
Date: Mon, 16 Nov 2015 17:13:28 -0500	[thread overview]
Message-ID: <20151116221328.GA22014@char.us.oracle.com> (raw)
In-Reply-To: <20151116205241.GC5306@reaktio.net>

On Mon, Nov 16, 2015 at 10:52:41PM +0200, Pasi Kärkkäinen wrote:
> Hello,
> 
> 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.
> 
> Components:
> 	- Linux 4.4 kernel includes the DRM driver for VirtIO-GPU 3D acceleration (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, supports up to OpenGL 3.3 atm).
> 	- On the host/dom0 one needs *any* OpenGL driver (for the host GPU obviously), no special requirements there, if I understood correctly.
> 
> 
> Has someone looked into this already? How much work would it be to get VirtIO-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=1\nopengl=1' would need to be set and
also some of device_model_args_hvm=XX 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=virtio-vga -display gtk,gl=on ?


> 
> 
> Thanks,
> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2015-11-16 22:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-16 20:52 VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs and Xen Pasi Kärkkäinen
2015-11-16 22:13 ` Konrad Rzeszutek Wilk [this message]
2016-01-11  9:47 ` Pasi Kärkkäinen
2016-01-11 10:34   ` Fabio Fantoni
2016-01-11 16:08   ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151116221328.GA22014@char.us.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=pasik@iki.fi \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).