mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
cf521fc8ba
There was a mess in the way how we store unlimited value for memory limits and how we handled values provided by user. Internally there were two possible ways how to store unlimited value: as 0 value or as VIR_DOMAIN_MEMORY_PARAM_UNLIMITED. Because we chose to store memory limits as unsigned long long, we cannot use -1 to represent unlimited. It's much easier for us to say that everything greater than VIR_DOMAIN_MEMORY_PARAM_UNLIMITED means unlimited and leave 0 as valid value despite that it makes no sense to set limit to 0. Remove unnecessary function virCompareLimitUlong. The update of test is to prevent the 0 to be miss-used as unlimited in future. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1146539 Signed-off-by: Pavel Hrdina <phrdina@redhat.com> |
||
---|---|---|
.. | ||
qemuxml2xmlout-balloon-device-auto.xml | ||
qemuxml2xmlout-boot-menu-disable-with-timeout.xml | ||
qemuxml2xmlout-channel-virtio-auto.xml | ||
qemuxml2xmlout-channel-virtio-state-active.xml | ||
qemuxml2xmlout-channel-virtio-state-inactive.xml | ||
qemuxml2xmlout-console-compat-auto.xml | ||
qemuxml2xmlout-console-virtio.xml | ||
qemuxml2xmlout-cpu-numa1.xml | ||
qemuxml2xmlout-cpu-numa2.xml | ||
qemuxml2xmlout-cputune-iothreads.xml | ||
qemuxml2xmlout-cputune-iothreadsched.xml | ||
qemuxml2xmlout-disk-backing-chains-active.xml | ||
qemuxml2xmlout-disk-backing-chains-inactive.xml | ||
qemuxml2xmlout-disk-drive-discard.xml | ||
qemuxml2xmlout-disk-mirror-old-inactive.xml | ||
qemuxml2xmlout-disk-mirror-old.xml | ||
qemuxml2xmlout-disk-mirror.xml | ||
qemuxml2xmlout-disk-scsi-device-auto.xml | ||
qemuxml2xmlout-disk-source-pool.xml | ||
qemuxml2xmlout-graphics-listen-network2.xml | ||
qemuxml2xmlout-graphics-spice-timeout.xml | ||
qemuxml2xmlout-hostdev-scsi-autogen-address.xml | ||
qemuxml2xmlout-memtune-unlimited.xml | ||
qemuxml2xmlout-memtune.xml | ||
qemuxml2xmlout-metadata-duplicate.xml | ||
qemuxml2xmlout-metadata.xml | ||
qemuxml2xmlout-numad-auto-memory-vcpu-cpuset.xml | ||
qemuxml2xmlout-numad-auto-memory-vcpu-no-cpuset-and-placement.xml | ||
qemuxml2xmlout-numad-auto-vcpu-no-numatune.xml | ||
qemuxml2xmlout-numatune-auto-prefer.xml | ||
qemuxml2xmlout-numatune-memnode.xml | ||
qemuxml2xmlout-pci-autoadd-addr.xml | ||
qemuxml2xmlout-pci-autoadd-idx.xml | ||
qemuxml2xmlout-pci-bridge-many-disks.xml | ||
qemuxml2xmlout-pcie-root.xml | ||
qemuxml2xmlout-pcihole64-gib.xml | ||
qemuxml2xmlout-pmu-feature.xml | ||
qemuxml2xmlout-q35.xml | ||
qemuxml2xmlout-s390-defaultconsole.xml | ||
qemuxml2xmlout-seclabel-dynamic-labelskip.xml | ||
qemuxml2xmlout-seclabel-dynamic-none-relabel.xml | ||
qemuxml2xmlout-seclabel-dynamic-relabel.xml | ||
qemuxml2xmlout-seclabel-none.xml | ||
qemuxml2xmlout-serial-target-port-auto.xml | ||
qemuxml2xmlout-tap-vhost-incorrect.xml | ||
qemuxml2xmlout-usb-ich9-ehci-addr.xml |