Re: [libvirt] [PATCH] conf: Introduce virDomainDefCputuneValidate helper

2019-03-14 Thread Erik Skultety
On Wed, Mar 13, 2019 at 09:54:31PM -0600, Suyang Chen wrote: > move all the def->cputune 'period must be in range' > and 'quota must be in range' errors into two macros > and called in virDomainDefCputuneValidate function > and have it called from virDomainDefValidateInternal function I'll

[libvirt] [PATCH] conf: Introduce virDomainDefCputuneValidate helper

2019-03-13 Thread Suyang Chen
move all the def->cputune 'period must be in range' and 'quota must be in range' errors into two macros and called in virDomainDefCputuneValidate function and have it called from virDomainDefValidateInternal function Reason: Two macros maybe easier to debug and change in the future Solve the