]> xenbits.xensource.com Git - libvirt.git/commit
conf: Fix @tickpolicy member of _virDomainTimerDef struct
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 23 Jan 2022 20:34:29 +0000 (21:34 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Jan 2022 09:49:20 +0000 (10:49 +0100)
commit96d72b461f1e448a9df1d15fc48330f0c75ee65d
tree27d35fab98fbedf86126f686d7b402393b730233
parent754a7f6c942268b2b604de072a3391ea4df91e57
conf: Fix @tickpolicy member of _virDomainTimerDef struct

The @tickpolicy member of the _virDomainTimerDef struct stores
values of the virDomainTimerTickpolicyType enum, or -1 for the
default value (when user provided no value in XML).

This is needlessly complicated. Introduce new value to the enum
which reflects the default state.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/xen_common.c
src/qemu/qemu_command.c
src/qemu/qemu_validate.c