diff options
author | Erik Skultety | 2018-11-16 11:14:43 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2018-11-16 11:44:22 +0100 |
commit | 91e61947eb2be21b00091d34f5692f89cef41376 (patch) | |
tree | 862a953fb465311ad73a56b104878874736b3551 /ui/egl-headless.c | |
parent | qapi: Add "rendernode" display option for egl-headless (diff) | |
download | qemu-91e61947eb2be21b00091d34f5692f89cef41376.tar.gz qemu-91e61947eb2be21b00091d34f5692f89cef41376.tar.xz qemu-91e61947eb2be21b00091d34f5692f89cef41376.zip |
ui: Allow specifying 'rendernode' display option for egl-headless
As libvirt can't predict which rendernode QEMU would pick, it
won't adjust the permissions on the device, hence QEMU getting
"Permission denied" when opening the DRI device. Therefore, enable
'rendernode' option for egl-headless display type.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1648236
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Message-id: 27f4617f19aa1072114f10f1aa9dd199735ef982.1542362949.git.eskultet@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/egl-headless.c')
-rw-r--r-- | ui/egl-headless.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/egl-headless.c b/ui/egl-headless.c index 42a41310b0..4cf3bbc0e4 100644 --- a/ui/egl-headless.c +++ b/ui/egl-headless.c @@ -176,7 +176,7 @@ static void egl_headless_init(DisplayState *ds, DisplayOptions *opts) egl_dpy *edpy; int idx; - if (egl_rendernode_init(NULL, mode) < 0) { + if (egl_rendernode_init(opts->u.egl_headless.rendernode, mode) < 0) { error_report("egl: render node init failed"); exit(1); } |