[virglrenderer-devel] [PATCH 0/4] Provide the means to inject info about the host GL into a qemu guest
Gert Wollny
gert.wollny at collabora.com
Wed Jun 13 09:03:36 UTC 2018
Dear all,
this is a reworked proposal to make it possible to obtain information about
the host GL and virglrender version from within the guest. The series doesn't
require any changes to the guest version of virgl or to qemu. Instead it
provides the means to inject this information into the guest system by using
smbios OEM strings.
The first two patches are simple fixes to the existing code, the third patch
adds the means to inject the git sha for the current version into the build
(mostly taken from mesa), and adds and exposes a function to read this and the
OpenGL version information of the currenly active context. This function could
also be called from Qemu, and if you think that this is a good idea, then I
will propose a patch (It would make sure that the information inside the guest
really corresponds to the GL context Qemu is using.)
The last patch finally adds a command line program that prints out the version
information that can be injected into the guest via the -smbios command line
parameter provided by qemu (see corresponding commit message).
Best,
Gert
Gert Wollny (4):
vrend_renderer.h: include GL/gl.h because it is actually needed here
configure.ac: Set HAVE_EPOXY_GLX_H correctly
vrenderer: Add function to obtain host GL and virglrend info
vrend: add simple program to print host info
configure.ac | 11 ++---
src/Makefile.am | 20 ++++++++-
src/git_sha1.h.in | 1 +
src/git_sha1_gen.py | 46 +++++++++++++++++++++
src/virgl_host_info.c | 94 +++++++++++++++++++++++++++++++++++++++++++
src/virglrenderer.c | 9 ++++-
src/virglrenderer.h | 2 +
src/vrend_renderer.h | 1 +
8 files changed, 177 insertions(+), 7 deletions(-)
create mode 100644 src/git_sha1.h.in
create mode 100644 src/git_sha1_gen.py
create mode 100644 src/virgl_host_info.c
--
2.17.1
More information about the virglrenderer-devel
mailing list