cloud-hypervisor/vmm
Rob Bradford 99d9a3d299 vmm: memory_manager: Avoid MAP_PRIVATE CoW with VFIO for hugepages too
We can't use MAP_ANONYMOUS and still have huge pages so MAP_SHARED is
effectively required when using huge pages.

Unfortunately it is not as simple as always forcing MAP_SHARED if
hugepages is on as this might be inappropriate in the backing file case
hence why there is additional complexity of assigning to mmap_flags on
each case and the MAP_SHARED is only turned on for the anonymous file
huge page case as well as anonymous shared file case.

See: #4805

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-10-31 22:28:29 +00:00
..
src vmm: memory_manager: Avoid MAP_PRIVATE CoW with VFIO for hugepages too 2022-10-31 22:28:29 +00:00
Cargo.toml build: Bump libc from 0.2.135 to 0.2.137 2022-10-27 23:57:43 +00:00