mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
384752647a
Implement the VIRTIO_BALLOON_F_REPORTING feature, indicating to the guest it can report set of free pages. A new virtqueue dedicated for receiving the information about the free pages is created. The VMM releases the memory by punching holes with fallocate() if the guest memory is backed by a file, and madvise() the host about the ranges of memory that shouldn't be needed anymore. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>