Blame SOURCES/kvm-ui-Allow-specifying-rendernode-display-option-for-eg.patch

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