* Why prevent boot memory to be hot-removed on arm64?
@ 2025-07-29 6:22 Huang, Ying
0 siblings, 0 replies; only message in thread
From: Huang, Ying @ 2025-07-29 6:22 UTC (permalink / raw)
To: Anshuman Khandual; +Cc: David Hildenbrand, linux-mm, linux-arm-kernel
Hi, Anshuman,
When I read memory hotplug code on arm64, I found that a memory notifier
(prevent_bootmem_remove_notifier()) is used to prevent the boot memory
to be hot-removed on arm64. I understand that some memory (for example
the boot memory) shouldn't be hot-removed on some platforms. However,
after checking the code, I found that the memory can only be hot-removed
via ACPI (acpi_memory_device_remove()), CXL/NVDIMM
(dev_dax_kmem_remove()), or virtio mem (virtio_mem_remove_memory).
IIUC, CXL/NVDIMM or virtio mem shouldn't be boot memory, and ACPI memory
hot-remove shouldn't be setup by the firmware if some memory ranges
shouldn't be hot-removed. If so, the boot memory cannot be hot-removed
accidentally, prevent_bootmem_remove_notifier() just makes the boot
memory can not be offlined.
Or I missed something?
---
Best Regards,
Huang, Ying
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-29 6:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-29 6:22 Why prevent boot memory to be hot-removed on arm64? Huang, Ying
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).