From 423d40ff3c90a8e6d5a93be09283a9897be176c2 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Wed, 29 Sep 2021 09:20:55 +0200 Subject: [PATCH] Change memory state from online to online_movable for better memory hot unplug support --- cloud-init/41-qemu-hot-add-cpu.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-init/41-qemu-hot-add-cpu.rules b/cloud-init/41-qemu-hot-add-cpu.rules index 4a2f35e..b4bed55 100644 --- a/cloud-init/41-qemu-hot-add-cpu.rules +++ b/cloud-init/41-qemu-hot-add-cpu.rules @@ -6,7 +6,7 @@ GOTO="vm_hotadd_end" LABEL="vm_hotadd_apply" # Memory hotadd request -SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}!="online", ATTR{state}="online" +SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory[0-9]*", TEST=="state", ATTR{state}!="online_movable", ATTR{state}="online_movable" # CPU hotadd request SUBSYSTEM=="cpu", ACTION=="add", DEVPATH=="/devices/system/cpu/cpu[0-9]*", TEST=="online", ATTR{online}!="1", ATTR{online}="1"