anolis-cloud-kernel/drivers/virtio
Yang Rong 1535649a03 anolis: virtio-mem: apply parallel deferred memory online
ANBZ: #18841

We applied parallel deferred memory online to virtio-mem and
observed a significant speedup in the hot-plug process.

We conducted an experiment to hotplug 400G of memory, and
the results were as follows:
- Before applying the patch:
  - Total Time = Origin Hotplug Time = 5537ms (72.24 GB/s)
- After applying the patch (with `parallel_hotplug_ratio=80`):
  - Origin Hotplug Time = 178ms
  - Deferred Parallel Hotplug Time = 1200ms
  - Total Time = 1378ms (76% reduction, 290.28 GB/s)

Lastly, there's an issue regarding the guest's plug
request to the VMM. The VMM relies on the plug requests
sent by the guest to determine the size of the hot-plugged
memory. Therefore, we should defer the sending of the plug
requests after the memory has been actually onlined.

Signed-off-by: Yang Rong <youngrong@linux.alibaba.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/4622
2025-07-15 01:37:35 +00:00
..
Kconfig anolis: drivers: virtio: add sw64 support 2024-03-20 08:52:34 +00:00
Makefile
virtio.c virtio: reenable config if freezing device failed 2024-08-20 05:56:36 +00:00
virtio_balloon.c anolis: virtio-balloon: add VIRTIO_BALLOON_F_HUGE_PAGES 2024-03-17 13:36:40 +00:00
virtio_dma_buf.c
virtio_input.c virtio_input: Constify id_table 2020-10-21 10:34:09 -04:00
virtio_mem.c anolis: virtio-mem: apply parallel deferred memory online 2025-07-15 01:37:35 +00:00
virtio_mmio.c virtio: record the maximum queue num supported by the device. 2024-05-15 06:32:36 +00:00
virtio_pci_common.c virtio_pci: support VIRTIO_F_RING_RESET 2024-05-15 06:32:36 +00:00
virtio_pci_common.h
virtio_pci_legacy.c virtio: record the maximum queue num supported by the device. 2024-05-15 06:32:36 +00:00
virtio_pci_modern.c virtio_pci: support VIRTIO_F_RING_RESET 2024-05-15 06:32:36 +00:00
virtio_ring.c anolis: virtio_ring: add split queue seq_printf interface 2025-03-28 14:53:56 +00:00
virtio_vdpa.c virtio: record the maximum queue num supported by the device. 2024-05-15 06:32:36 +00:00