diff options
author | David Hildenbrand <[email protected]> | 2020-11-12 14:38:15 +0100 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2020-12-18 16:14:28 -0500 |
commit | 3711387a7543f2716e52ce5a5d92e3d580423a40 (patch) | |
tree | e22dbb59ca7dfb41518c81d64b4dfc2e93b9c7d9 /kernel/gcov/gcc_base.c | |
parent | 269ac9389db4854f7b05c4749ff051763e7578d3 (diff) |
virtio-mem: Big Block Mode (BBM) - safe memory hotunplug
Let's add a safe mechanism to unplug memory, avoiding long/endless loops
when trying to offline memory - similar to in SBM.
Fake-offline all memory (via alloc_contig_range()) before trying to
offline+remove it. Use this mode as default, but allow to enable the other
mode explicitly (which could give better memory hotunplug guarantees in
some environments).
The "unsafe" mode can be enabled e.g., via virtio_mem.bbm_safe_unplug=0
on the cmdline.
Reviewed-by: Wei Yang <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Pankaj Gupta <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Oscar Salvador <[email protected]>
Cc: Wei Yang <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'kernel/gcov/gcc_base.c')
0 files changed, 0 insertions, 0 deletions