]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virutil: introduce helper functions for memory limits
authorPavel Hrdina <phrdina@redhat.com>
Wed, 4 Mar 2015 14:08:09 +0000 (15:08 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 6 Mar 2015 10:52:23 +0000 (11:52 +0100)
commita73395ae66c163ba2fefb39c558ea36972ef6406
treebe2eaaa09d1f6c1af119d370b3e7845c696a574c
parentc2020b08ceeef778a2c862e84c4b4e11bc0189ee
virutil: introduce helper functions for memory limits

The first one is to truncate the memory limit to
VIR_DOMAIN_MEMORY_PARAM_UNLIMITED if the value is greater and the second
one is to decide whether the memory limit is set or not, unlimited means
that it's not set.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h