Skip to content

virtio-mem: memory unplug/offlining related cleanups

David Hildenbrand linux-mm lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4virtio-mem: remove unsafe unplug in Big Block Mode (BBM)drivers/virtio/virtio_mem.c+20 -310 replies
2/4virtio-mem: convert most offline_and_remove_memory() errors to -EBUSYdrivers/virtio/virtio_mem.c+8 -40 replies
3/4virtio-mem: keep retrying on offline_and_remove_memory() errors in Sub Block Mode (SBM)drivers/virtio/virtio_mem.c+73 -190 replies
4/4virtio-mem: check if the config changed before fake offlining memorydrivers/virtio/virtio_mem.c+12 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] virtio-mem: memory unplug/offlining related cleanups

Some cleanups+optimizations primarily around offline_and_remove_memory().

Patch #1 drops the "unsafe unplug" feature where we might get stuck in offline_and_remove_memory() forever.

Patch #2 handles unexpected errors from offline_and_remove_memory() a bit nicer.

Patch #3 handles the case where offline_and_remove_memory() failed and we want to retry later to remove a completely unplugged Linux memory block, to not have them waste memory forever.

Patch #4 something I had lying around for longer, which reacts faster on config changes when unplugging memory.

Cc "Michael S. Tsirkin" <[email protected]>
Cc Jason Wang <[email protected]>
Cc Xuan Zhuo <[email protected]>

David Hildenbrand (4):
virtio-mem: remove unsafe unplug in Big Block Mode (BBM)
virtio-mem: convert most offline_and_remove_memory() errors to -EBUSY
virtio-mem: keep retrying on offline_and_remove_memory() errors in Sub
Block Mode (SBM)
virtio-mem: check if the config changed before fake offlining memory

 drivers/virtio/virtio_mem.c | 168 ++++++++++++++++++++++++------------
 1 file changed, 112 insertions(+), 56 deletions(-)

base-commit: 3f01e9fed8454dcd89727016c3e5b2fbb8f8e50c

Signature · 1 line
2.41.0