]> git.proxmox.com Git - qemu-server.git/commit
fix #2570: add 'keephugepages' config
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 2 Sep 2020 09:03:37 +0000 (11:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Sep 2020 10:45:57 +0000 (12:45 +0200)
commitf36e9894ff9f515190adc675b624f8d4275b4dea
tree007b92005d4fa433e47dc45a23dc2b46148f31b8
parent116df99cc6d863bfede8faf62575491ad4f932d0
fix #2570: add 'keephugepages' config

We already keep hugepages if they are created with the kernel
commandline (hugepagesz=x hugepages=y), but some setups (specifically
hugepages across multiple NUMA nodes) cannot be configured that way.
Since we always clear these hugepages at VM shutdown, rebooting a VM
that uses them might not work, since the requested count might not be
available anymore by the time we want to use them (also, we would then
no longer allocate them correctly on the NUMA nodes).

Add a 'keephugepages' parameter to skip cleanup and simply leave them
untouched.

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