Browse Source

Change memory state from online to online_movable for better memory hot unplug support

pull/1/head
Julien Escario 3 years ago
parent
commit
423d40ff3c
  1. 2
      cloud-init/41-qemu-hot-add-cpu.rules

2
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"

Loading…
Cancel
Save