mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-27 19:14:21 +01:00
This commit adds qemu virtio-mem support. Then qemu can use virtio-mem support memory resize. To enable this function, need the Linux and the qemu that support virtio-mem. Use command "echo 1 > /proc/sys/vm/overcommit_memory" to enable memory overcommitment of the Linux kernel. Because qemu virtio-mem device need to allocate a lot of memory. Set "enable_virtio_mem" of kata configuration to true. Fixes: #2406 Signed-off-by: Hui Zhu <teawater@antfin.com>