qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Chih-Wei Huang <cwhuang@android-x86.org>
To: Saket Sinha <saket.sinha89@gmail.com>
Cc: virglrenderer-devel@lists.freedesktop.org, kvm@vger.kernel.org,
	ML dri-devel <dri-devel@lists.freedesktop.org>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs
Date: Thu, 24 Mar 2016 15:41:31 +0800	[thread overview]
Message-ID: <CAKc24n2g0MiO1=+qhtZuOR-CM5XEmfqHzbuWcc1WjzL7aL8uNw@mail.gmail.com> (raw)
In-Reply-To: <CAK25hWMx_u9KZ-QDtOSRzenF+SPzXBWymM4p8Xxn8EJGURCGRg@mail.gmail.com>

2016-02-15 10:34 GMT+08:00 Saket Sinha <saket.sinha89@gmail.com>:
>
> 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.
> - 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.

If you are interested to test Android on QEMU
with 3D hardware acceleration (via virgl, of course),
here is an ISO you can test:

http://www.fosshub.com/Android-x86.html/android-x86-6.0-20160318.iso

The command to run QEMU

qemu-kvm -smp 2 -m 2048 \
    -device virtio-gpu-pci,virgl -display gtk,gl=on \
    -d guest_errors \
    -serial mon:stdio \
    -cdrom android-x86-6.0-20160318.iso


It's built with kernel 4.4.4 and Mesa 11.2.0-rc3.
If you'd like to build the ISO yourself, please read
https://sourceforge.net/p/android-x86/wiki/Downloading%20and%20Building/

-- 
Chih-Wei
Android-x86 project
http://www.android-x86.org

      parent reply	other threads:[~2016-03-24  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15  2:34 [Qemu-devel] VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs Saket Sinha
2016-02-15  2:47 ` David Airlie
2016-03-24  7:41 ` Chih-Wei Huang [this message]

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='CAKc24n2g0MiO1=+qhtZuOR-CM5XEmfqHzbuWcc1WjzL7aL8uNw@mail.gmail.com' \
    --to=cwhuang@android-x86.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=saket.sinha89@gmail.com \
    --cc=virglrenderer-devel@lists.freedesktop.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).