Blame SOURCES/libvirt-qemu-domain-egl-headless-Add-the-DRI-device-into-the-namespace.patch

0a7476
From 5b08e3b39e250b822c918fa90a33889b37a48e75 Mon Sep 17 00:00:00 2001
0a7476
Message-Id: <5b08e3b39e250b822c918fa90a33889b37a48e75@dist-git>
0a7476
From: Erik Skultety <eskultet@redhat.com>
0a7476
Date: Tue, 9 Apr 2019 08:34:32 +0200
0a7476
Subject: [PATCH] qemu: domain: egl-headless: Add the DRI device into the
0a7476
 namespace
0a7476
MIME-Version: 1.0
0a7476
Content-Type: text/plain; charset=UTF-8
0a7476
Content-Transfer-Encoding: 8bit
0a7476
0a7476
Just like for SPICE, we need to put the DRI device into the namespace,
0a7476
otherwise it will be left out from the DAC relabeling process.
0a7476
0a7476
Signed-off-by: Erik Skultety <eskultet@redhat.com>
0a7476
Reviewed-by: Ján Tomko <jtomko@redhat.com>
0a7476
(cherry picked from commit 53ca6fa4eacb9e519710dacf237997b813f892d2)
0a7476
0a7476
https: //bugzilla.redhat.com/show_bug.cgi?id=1628892
0a7476
Signed-off-by: Erik Skultety <eskultet@redhat.com>
0a7476
Message-Id: <be1a212b440349c207623e5865a373319c49c412.1554791287.git.eskultet@redhat.com>
0a7476
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
0a7476
---
0a7476
 src/qemu/qemu_domain.c | 6 ++----
0a7476
 1 file changed, 2 insertions(+), 4 deletions(-)
0a7476
0a7476
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
0a7476
index 112958f64a..76f48d6f83 100644
0a7476
--- a/src/qemu/qemu_domain.c
0a7476
+++ b/src/qemu/qemu_domain.c
0a7476
@@ -11472,11 +11472,9 @@ qemuDomainSetupGraphics(virQEMUDriverConfigPtr cfg ATTRIBUTE_UNUSED,
0a7476
                         virDomainGraphicsDefPtr gfx,
0a7476
                         const struct qemuDomainCreateDeviceData *data)
0a7476
 {
0a7476
-    const char *rendernode = gfx->data.spice.rendernode;
0a7476
+    const char *rendernode = virDomainGraphicsGetRenderNode(gfx);
0a7476
 
0a7476
-    if (gfx->type != VIR_DOMAIN_GRAPHICS_TYPE_SPICE ||
0a7476
-        gfx->data.spice.gl != VIR_TRISTATE_BOOL_YES ||
0a7476
-        !rendernode)
0a7476
+    if (!rendernode)
0a7476
         return 0;
0a7476
 
0a7476
     return qemuDomainCreateDevice(rendernode, data, false);
0a7476
-- 
0a7476
2.21.0
0a7476