[pve-devel] [PATCH qemu-server] api: add 'allow-ksm' to memory options

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Nov 18 10:42:10 CET 2025


else it is treated as root-only parameter, and since the UI will set/clear it
by default, that makes memory-editing in its entirety root-only.

Fixes: ae91d137c1e993031385da594c37c61e4295dc97 close #5291: support disabling KSM for specific VMs
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    reported on the forum:
    
    https://forum.proxmox.com/threads/176180/

 src/PVE/API2/Qemu.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index a1c99b9e..5cdba4bb 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -742,6 +742,7 @@ my $memoryoptions = {
     'memory' => 1,
     'balloon' => 1,
     'shares' => 1,
+    'allow-ksm' => 1,
 };
 
 my $hwtypeoptions = {
-- 
2.47.3





More information about the pve-devel mailing list