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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,10 @@
CONFIG_EFI_STUB=y CONFIG_EFI_STUB=y
CONFIG_HOTPLUG_CPU=y
CONFIG_MEMORY_HOTPLUG=y
CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y
CONFIG_MEMORY_HOTREMOVE=y
CONFIG_VMXNET3=y CONFIG_VMXNET3=y
CONFIG_VMWARE_PVSCSI=y CONFIG_VMWARE_PVSCSI=y
CONFIG_VMWARE_VMCI_VSOCKETS=y CONFIG_VMWARE_VMCI_VSOCKETS=y

View File

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