mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virDomainVideoDriverDefParseXML: Allow zero value for @vgaconf
It was always allowed, but in a very unusual and weird way. Just look at the original commit that introduced it (78fc843c7b5). Also, we document that "io" value is accepted (which translates to VIR_DOMAIN_VIDEO_VGACONF_IO with value of zero). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
1edf9f7b0a
commit
a573f21f32
@ -14326,7 +14326,7 @@ virDomainVideoDriverDefParseXML(xmlNodePtr node,
|
||||
|
||||
if (virXMLPropEnum(driver, "vgaconf",
|
||||
virDomainVideoVGAConfTypeFromString,
|
||||
VIR_XML_PROP_NONZERO, &def->vgaconf) < 0)
|
||||
VIR_XML_PROP_NONE, &def->vgaconf) < 0)
|
||||
return NULL;
|
||||
|
||||
return g_steal_pointer(&def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user