This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: add interface memHotplugByProbe for memory hotplug
There are 2 phases in Memory Hotplug. 1) Physical Memory Hotplug phase. 2) Logical Memory Hotplug phase. The First phase is to communicate hardware/firmware and make/erase environment for hotplugged memory. If firmware supports notification of connection of new memory to OS, this phase is triggered automatically. ACPI can notify this event. This also what kata supports on amd64, memory hotplug via acpi-driven. But if not, there is another option, probe operation by hand. And since memory hotplug via acpi is missing on qemu-system-aarch64, we hope to support the other probe solution. This whole implementation of memory hotplug via probe interface is divided into two phases, the first is covered by former commit. The second is to notify guest kernel about hot-added momery event by echoing related addresses into /sys/devices/system/memory/probe. Fixes: #442 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
- Loading branch information