Skip to content

Commit

Permalink
Enable memory and CPU hotplugging for virtual machines (home-assistan…
Browse files Browse the repository at this point in the history
…t#1156) (home-assistant#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/
  • Loading branch information
agners authored Jan 5, 2021
1 parent 0188f24 commit ce1f071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildroot-external/board/intel/ova/kernel.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
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_VMWARE_PVSCSI=y
CONFIG_VMWARE_VMCI_VSOCKETS=y
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"

0 comments on commit ce1f071

Please sign in to comment.