[libvirt] [PATCH] conf: Don't accept dummy values for <memoryBacking/> attributes

Martin Kletzander mkletzan at redhat.com
Tue Feb 21 20:33:23 UTC 2017

On Tue, Feb 21, 2017 at 05:31:42PM +0100, Michal Privoznik wrote:
>Our virSomeEnumTypeFromString() functions return either the value
>of item from the enum or -1 on error. Usually however the value 0
>means 'this value is not set in the domain XML, use some sensible
>default'. Therefore, we don't accept corresponding string in
>domain XML, for instance:
>  <source mode="none"/>
>  <access mode="default"/>
>  <allocation mode="none"/>
>should be rejected as invalid XML.
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> src/conf/domain_conf.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170221/017cb4cf/attachment-0001.sig>

More information about the libvir-list mailing list