Hi,

FWIW, with the attached (git format-)patch series applied on top of
the debian/qemu_2.5+dfsg-5 tag in Vcs-Git, the output of ./configure,
while building the package in a chroot that has a locally-patched
libvirglrenderer-dev that fixes #818665, contains:

  GTK GL support    yes
  [...]
  virgl support     yes
  OpenGL support    yes

Using that QEMU, I've successfully booted a Jessie guest that has
Linux 4.4 from sid, and libdrm + Mesa from jessie-backports:

  qemu-system-x86_64 \
    -machine accel=kvm -m 2048 -cdrom whatever.iso \
    -display gtk -vga virtio

GNOME Shell works fine in the guest, X.Org uses the modesetting driver
as expected, but it seems that for some reason, virgl 3d acceleration
is not available. Next step is probably to test with a more current
(sid or Fedora rawhide) guest.

I didn't investigate any further yet, but I figured I would shared
this work in the hope it would save the maintainers some time some
day :)

Cheers,
--
intrigeri

>From b823d6f670acf40abdcb411dc2e50c6373f785ac Mon Sep 17 00:00:00 2001
From: intrigeri <intrig...@debian.org>
Date: Sat, 2 Apr 2016 21:25:52 +0000
Subject: [PATCH 1/2] Enable GTK+ 3.0 support.

---
 debian/control-in             |  8 ++++----
 debian/patches/series         |  1 +
 debian/patches/vte-2.91.patch | 20 ++++++++++++++++++++
 3 files changed, 25 insertions(+), 4 deletions(-)
 create mode 100644 debian/patches/vte-2.91.patch

diff --git a/debian/control-in b/debian/control-in
index 040cdb3..1903b7a 100644
--- a/debian/control-in
+++ b/debian/control-in
@@ -42,11 +42,11 @@ Build-Depends: debhelper (>= 9),
 # --enable-gnutls
  gnutls-dev,
 # gtk ui is almost the same as sdl but adds bloat
-# --disable-gtk
-## --with-gtkabi=2.0
-# libgtk2.0-dev, libvte-dev (>> 0.18.0~),
+# --enable-gtk
+# --with-gtkabi=3.0
+ libgtk-3-dev, libvte-2.91-dev (>= 0.32.0),
 # vte is used together with gtk
-# --disable-vte
+# --enable-vte
 # libiscsi is debian-only since ubuntu/libiscsi is in universe
 :debian:# --enable-libiscsi
 :debian: libiscsi-dev (>> 1.9.0~),
diff --git a/debian/patches/series b/debian/patches/series
index cfc5047..7c448ed 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -18,3 +18,4 @@ linux-user-enable-sigaltstack-for-all-architectures.patch
 i386-avoid-null-pointer-dereference-CVE-2016-1922.patch
 e1000-eliminate-infinite-loops-on-out-of-bounds-start-CVE-2016-1981.patch
 hmp-fix-sendkey-out-of-bounds-write-CVE-2015-8619.patch
+vte-2.91.patch
diff --git a/debian/patches/vte-2.91.patch b/debian/patches/vte-2.91.patch
new file mode 100644
index 0000000..15e4e34
--- /dev/null
+++ b/debian/patches/vte-2.91.patch
@@ -0,0 +1,20 @@
+--- a/configure
++++ b/configure
+@@ -2431,7 +2431,7 @@
+ 
+ if test "$vte" != "no"; then
+     if test "$gtkabi" = "3.0"; then
+-      vtepackage="vte-2.90"
++      vtepackage="vte-2.91"
+       vteversion="0.32.0"
+     else
+       vtepackage="vte"
+@@ -2444,7 +2444,7 @@
+         vte="yes"
+     elif test "$vte" = "yes"; then
+         if test "$gtkabi" = "3.0"; then
+-            feature_not_found "vte" "Install libvte-2.90 devel"
++            feature_not_found "vte" "Install libvte-2.91 devel"
+         else
+             feature_not_found "vte" "Install libvte devel"
+         fi
-- 
2.8.0.rc3

>From 23060e9451845f420b733bf326b07d25df7dc44b Mon Sep 17 00:00:00 2001
From: intrigeri <intrig...@debian.org>
Date: Sat, 2 Apr 2016 21:36:45 +0000
Subject: [PATCH 2/2] Enable virgl and GTK OpenGL support.

---
 debian/control-in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/control-in b/debian/control-in
index 1903b7a..302ea10 100644
--- a/debian/control-in
+++ b/debian/control-in
@@ -44,7 +44,7 @@ Build-Depends: debhelper (>= 9),
 # gtk ui is almost the same as sdl but adds bloat
 # --enable-gtk
 # --with-gtkabi=3.0
- libgtk-3-dev, libvte-2.91-dev (>= 0.32.0),
+ libgtk-3-dev, libvte-2.91-dev (>= 0.32.0), libepoxy-dev,
 # vte is used together with gtk
 # --enable-vte
 # libiscsi is debian-only since ubuntu/libiscsi is in universe
@@ -68,6 +68,9 @@ Build-Depends: debhelper (>= 9),
 # note: libsdl2-dev is in universe on ubuntu
 # --enable-sdl --with-sdlabi=1.2
  libsdl1.2-dev (>> 1.2.1),
+# --enable-opengl
+# --enable-virglrenderer
+ libvirglrenderer-dev,
 # --enable-seccomp	linux-amd64|linux-i386
  libseccomp-dev (>> 2.1.0) [linux-amd64 linux-i386],
 # --enable-spice	linux-amd64|linux-i386
-- 
2.8.0.rc3

Reply via email to