]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: don't format memtune with unlimited values
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 9 Dec 2013 10:32:48 +0000 (11:32 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 10 Dec 2013 08:11:26 +0000 (09:11 +0100)
commitea130e3bf666397a05a674ffcf15b9ab170b2255
tree60c885a260e323eed16692ce6ca39e8ead212cd8
parent8d7c668e64b5bcd2d08aa5057c9aff43d1f73dfd
conf: don't format memtune with unlimited values

When changing memtune limits to unlimited with AFFECT_CONFIG, the
values in virDomainDef are set to PARAM_UNLIMITED, which causes the
whole <memtune> to be formatted.  This can be changed in all drivers,
but it also makes sense to use the default (0) as another value for
"unlimited", since zero memory limit makes no sense.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-memtune-unlimited.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-memtune-unlimited.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-memtune-unlimited.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c