acpi: Add hotplug numa node

virtio-mem device would use 'VIRTIO_MEM_F_ACPI_PXM' to add memory to NUMA
node, which MUST be existed, otherwise it will be assigned to node id 0,
even if user specify different node id.

According ACPI spec about Memory Affinity Structure, system hardware
supports hot-add memory region using 'Hot Pluggable | Enabled' flags.

Signed-off-by: Jiangbo Wu <jiangbo.wu@intel.com>
This commit is contained in:
Jiangbo Wu
2020-09-21 17:59:15 +08:00
committed by Sebastien Boeuf
parent 223189c063
commit 22a2a99e5f
4 changed files with 60 additions and 24 deletions

1
Cargo.lock generated
View File

@@ -1611,6 +1611,7 @@ dependencies = [
"anyhow",
"arc-swap",
"arch",
"bitflags 1.2.1",
"block_util",
"clap",
"credibility",