render / rpms / libvirt

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