thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

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

26ba25
From ba493d2395a3833470e4dd12ef1a7b0f32905772 Mon Sep 17 00:00:00 2001
26ba25
From: Gerd Hoffmann <kraxel@redhat.com>
26ba25
Date: Fri, 14 Dec 2018 08:26:41 +0000
26ba25
Subject: [PATCH 4/5] ui: Allow specifying 'rendernode' display option for
26ba25
 egl-headless
26ba25
MIME-Version: 1.0
26ba25
Content-Type: text/plain; charset=UTF-8
26ba25
Content-Transfer-Encoding: 8bit
26ba25
26ba25
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
26ba25
Message-id: <20181214082642.21878-5-kraxel@redhat.com>
26ba25
Patchwork-id: 83506
26ba25
O-Subject: [RHEL8/rhel qemu-kvm PATCH 4/5] ui: Allow specifying 'rendernode' display option for egl-headless
26ba25
Bugzilla: 1652871
26ba25
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
26ba25
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
26ba25
RH-Acked-by: Erik Skultety <eskultet@redhat.com>
26ba25
26ba25
From: Erik Skultety <eskultet@redhat.com>
26ba25
26ba25
As libvirt can't predict which rendernode QEMU would pick, it
26ba25
won't adjust the permissions on the device, hence QEMU getting
26ba25
"Permission denied" when opening the DRI device. Therefore, enable
26ba25
'rendernode' option for egl-headless display type.
26ba25
26ba25
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1648236
26ba25
26ba25
Signed-off-by: Erik Skultety <eskultet@redhat.com>
26ba25
Message-id: 27f4617f19aa1072114f10f1aa9dd199735ef982.1542362949.git.eskultet@redhat.com
26ba25
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
26ba25
(cherry picked from commit 91e61947eb2be21b00091d34f5692f89cef41376)
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
26ba25
Conflicts:
26ba25
	ui/egl-headless.c
26ba25
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
---
26ba25
 ui/egl-headless.c | 2 +-
26ba25
 1 file changed, 1 insertion(+), 1 deletion(-)
26ba25
26ba25
diff --git a/ui/egl-headless.c b/ui/egl-headless.c
26ba25
index 7c87712..03fec49 100644
26ba25
--- a/ui/egl-headless.c
26ba25
+++ b/ui/egl-headless.c
26ba25
@@ -175,7 +175,7 @@ static void egl_headless_init(DisplayState *ds, DisplayOptions *opts)
26ba25
     egl_dpy *edpy;
26ba25
     int idx;
26ba25
 
26ba25
-    if (egl_rendernode_init(NULL) < 0) {
26ba25
+    if (egl_rendernode_init(opts->u.egl_headless.rendernode) < 0) {
26ba25
         error_report("egl: render node init failed");
26ba25
         exit(1);
26ba25
     }
26ba25
-- 
26ba25
1.8.3.1
26ba25