mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
For vhost-user devices, memory should be shared between CLH and vhost-user backend. However, madvise DONTNEED doesn't working in this case. So, let's use fallocate PUNCH_HOLE to discard those memory regions instead. Signed-off-by: Li Hangjing <lihangjing@bytedance.com>