Enable memory and CPU hotplugging for virtual machines (#1156) (#1158)

Use udev rules to set the CPU online. For memory, we let the kernel
bring memory online automatically. This is preferred as udev rule
processing might be delayed in a low memory situation, see:
https://lwn.net/Articles/668944/
This commit is contained in:
Stefan Agner
2021-01-05 23:19:42 +01:00
committed by GitHub
parent 0188f24a0d
commit ce1f07126f
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1 @@
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"