]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
version_guard: early out when major/minor version is high enough
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 19 Mar 2020 10:03:13 +0000 (11:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Mar 2020 08:58:17 +0000 (09:58 +0100)
commit47f35977cb528d43537f3d8c77fa75d51983eac3
treede5354dd78f9276aa1d6e8b9840568cbde747c67
parent03c8cbd1dc5a03efc6b2df485515a1ca82b47bfb
version_guard: early out when major/minor version is high enough

E.g.: If a feature requires 4.1+pveN and we're using machine version 4.2
we don't need to increase the pve version to N (4.2+pve0 is enough).

We check this by doing a min_version call against a non-existant higher
pve-version for the major/minor tuple we want to test for, which can
only work if the major/minor alone is high enough.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm