mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
qemu: domain: egl-headless: Add the DRI device into the namespace
Just like for SPICE, we need to put the DRI device into the namespace, otherwise it will be left out from the DAC relabeling process. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -11875,11 +11875,9 @@ qemuDomainSetupGraphics(virQEMUDriverConfigPtr cfg ATTRIBUTE_UNUSED,
|
||||
virDomainGraphicsDefPtr gfx,
|
||||
const struct qemuDomainCreateDeviceData *data)
|
||||
{
|
||||
const char *rendernode = gfx->data.spice.rendernode;
|
||||
const char *rendernode = virDomainGraphicsGetRenderNode(gfx);
|
||||
|
||||
if (gfx->type != VIR_DOMAIN_GRAPHICS_TYPE_SPICE ||
|
||||
gfx->data.spice.gl != VIR_TRISTATE_BOOL_YES ||
|
||||
!rendernode)
|
||||
if (!rendernode)
|
||||
return 0;
|
||||
|
||||
return qemuDomainCreateDevice(rendernode, data, false);
|
||||
|
||||
Reference in New Issue
Block a user