]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_validate: use defines for cpu period and quota limits
authorPavel Hrdina <phrdina@redhat.com>
Fri, 19 Feb 2021 18:41:59 +0000 (19:41 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 22 Feb 2021 13:03:04 +0000 (14:03 +0100)
commit22cae2ea4bad7e285ba19d536bd475f8b00841f8
treeb28d34d2009647e1af00f0339c6317036ebaae2c
parentef7849ee5f9965129e2f0dad7b6a15d4910ed517
domain_validate: use defines for cpu period and quota limits

Commints <bc760f4d7c4f964fadcb2a73e126b0053e7a9b06> and
<98a09ca48ed4fc011abf2aa290e02ce1b8f1bb5f> fixed the code to use
defines instead of magic numbers but missed this place.

Following commit <ed1ba69f5a8132f8c1e73d2a1f142d70de0b564a> changed
the cpu quota limit to reflect what kernel actually allows so using
the defines fixes XML validations as well.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_validate.c