mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00: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:
parent
5f931fe391
commit
53ca6fa4ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user