]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Memory.pm
fix #2402: allow 1GB hugepages if 2MB is unavailable
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 10 Oct 2019 10:18:41 +0000 (12:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 10 Oct 2019 13:32:46 +0000 (15:32 +0200)
commit3d8d2e8dadd217d48912883d82c5bf30ae039dc4
treea53a243fd878b695f13488d2a5c70747a171aab7
parent503be1f71eb14c99e0995c6fce898b40bd8550db
fix #2402: allow 1GB hugepages if 2MB is unavailable

As reported in bug #2402, a system started with "default_hugepagesz=1G
hugepagesz=1G" does not have a /sys/kernel/mm/hugepages/hugepages-2048kB
directory.

To fix, ignore the missing directory in hugepages_mount (since it might
not be needed anyway), and correctly check if the requested hugepage
size is available in hugepages_size instead.

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