|
|
7711c0 |
From 5c8182b9ee049c2a66ae41aaf664a8f97c86cf16 Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
Date: Tue, 5 Mar 2019 08:26:15 +0100
|
|
|
7711c0 |
Subject: [PATCH 7/9] ui: Allow specifying 'rendernode' display option for
|
|
|
7711c0 |
egl-headless
|
|
|
7711c0 |
MIME-Version: 1.0
|
|
|
7711c0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
7711c0 |
Content-Transfer-Encoding: 8bit
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
Message-id: <20190305082617.14614-3-kraxel@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 84798
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 2/4] ui: Allow specifying 'rendernode' display option for egl-headless
|
|
|
7711c0 |
Bugzilla: 1648236
|
|
|
7711c0 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Erik Skultety <eskultet@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Erik Skultety <eskultet@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
As libvirt can't predict which rendernode QEMU would pick, it
|
|
|
7711c0 |
won't adjust the permissions on the device, hence QEMU getting
|
|
|
7711c0 |
"Permission denied" when opening the DRI device. Therefore, enable
|
|
|
7711c0 |
'rendernode' option for egl-headless display type.
|
|
|
7711c0 |
|
|
|
7711c0 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1648236
|
|
|
7711c0 |
|
|
|
7711c0 |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
7711c0 |
Message-id: 27f4617f19aa1072114f10f1aa9dd199735ef982.1542362949.git.eskultet@redhat.com
|
|
|
7711c0 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
7711c0 |
(cherry picked from commit 91e61947eb2be21b00091d34f5692f89cef41376)
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
ui/egl-headless.c | 2 +-
|
|
|
7711c0 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/ui/egl-headless.c b/ui/egl-headless.c
|
|
|
7711c0 |
index 7c87712..03fec49 100644
|
|
|
7711c0 |
--- a/ui/egl-headless.c
|
|
|
7711c0 |
+++ b/ui/egl-headless.c
|
|
|
7711c0 |
@@ -175,7 +175,7 @@ static void egl_headless_init(DisplayState *ds, DisplayOptions *opts)
|
|
|
7711c0 |
egl_dpy *edpy;
|
|
|
7711c0 |
int idx;
|
|
|
7711c0 |
|
|
|
7711c0 |
- if (egl_rendernode_init(NULL) < 0) {
|
|
|
7711c0 |
+ if (egl_rendernode_init(opts->u.egl_headless.rendernode) < 0) {
|
|
|
7711c0 |
error_report("egl: render node init failed");
|
|
|
7711c0 |
exit(1);
|
|
|
7711c0 |
}
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|