]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce virDomainDefCputuneValidate helper
authorSuyang Chen <dawson0xff@gmail.com>
Thu, 14 Mar 2019 03:54:31 +0000 (21:54 -0600)
committerErik Skultety <eskultet@redhat.com>
Thu, 14 Mar 2019 09:44:44 +0000 (10:44 +0100)
commit265e6924f569431d431981c4c0d8d68baf0fb2a2
tree1b8b78b27bea8e3081590ba155f91402696c9fc7
parentca1471622dd96f0b2eb1cc3e648a96deaf46f5e9
conf: Introduce virDomainDefCputuneValidate helper

Introduce a simple validation helper to perform the cputune period and
quota checks so that we can get rid of those repetitive chunks. Since
this is a validation helper, this patch also moves the checks from the
'parse' phase into the 'validation' phase.

Signed-off-by: Suyang Chen <dawson0xff@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/domain_conf.c