yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

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