domcaps: Report egl-headless graphics type

QEMU supports egl-headless if QEMU_CAPS_EGL_HEADLESS capability
is present. There are some additional requirements but those are
checked for in qemuValidateDomainDeviceDefGraphics() and depend
on domain configuration and thus are not representable in domain
capabilities. Let's stick with plain qemuCaps check then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Michal Privoznik 2020-11-17 11:00:26 +01:00
parent 5ea08a33bf
commit 919ff9debf
57 changed files with 58 additions and 0 deletions

View File

@ -5988,6 +5988,8 @@ virQEMUCapsFillDomainDeviceGraphicsCaps(virQEMUCapsPtr qemuCaps,
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_VNC);
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE))
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_SPICE);
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_EGL_HEADLESS))
VIR_DOMAIN_CAPS_ENUM_SET(dev->type, VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS);
}

View File

@ -109,6 +109,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -124,6 +124,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -92,6 +92,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -90,6 +90,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -153,6 +153,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -109,6 +109,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -107,6 +107,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -119,6 +119,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -152,6 +152,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -107,6 +107,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -121,6 +121,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -130,6 +130,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -94,6 +94,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -92,6 +92,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -151,6 +151,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -121,6 +121,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -120,6 +120,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -131,6 +131,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -157,6 +157,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -120,6 +120,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -123,6 +123,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -134,6 +134,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -123,6 +123,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -123,6 +123,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -135,6 +135,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -97,6 +97,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -95,6 +95,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -163,6 +163,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -123,6 +123,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -128,6 +128,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -136,6 +136,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -128,6 +128,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -134,6 +134,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -141,6 +141,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -97,6 +97,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -95,6 +95,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -176,6 +176,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -134,6 +134,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -136,6 +136,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -142,6 +142,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -98,6 +98,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -96,6 +96,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -62,6 +62,7 @@
<enum name='type'>
<value>sdl</value>
<value>vnc</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -136,6 +136,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -137,6 +137,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -142,6 +142,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -137,6 +137,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -137,6 +137,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -142,6 +142,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>

View File

@ -137,6 +137,7 @@
<value>sdl</value>
<value>vnc</value>
<value>spice</value>
<value>egl-headless</value>
</enum>
</graphics>
<video supported='yes'>