cloud-hypervisor/virtio-devices
Sebastien Boeuf c397c9c95e vmm, virtio-devices: mem: Don't use MADV_DONTNEED on hugepages
This commit introduces a new information to the VirtioMemZone structure
in order to know if the memory zone is backed by hugepages.

Based on this new information, the virtio-mem device is now able to
determine if madvise(MADV_DONTNEED) should be performed or not. The
madvise documentation specifies that MADV_DONTNEED advice will fail if
the memory range has been allocated with some hugepages.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: Hui Zhu <teawater@antfin.com>
2021-02-04 17:52:30 +00:00
..
src vmm, virtio-devices: mem: Don't use MADV_DONTNEED on hugepages 2021-02-04 17:52:30 +00:00
Cargo.toml build(deps): bump libc from 0.2.84 to 0.2.85 2021-02-02 07:47:41 +00:00