cloud-hypervisor/vmm/src
Rob Bradford f7197e8415 vmm: Add a "discard_writes=" to --pmem
This opens the backing file read-only, makes the pages in the mmap()
read-only and also makes the KVM mapping read-only. The file is also
mapped with MAP_PRIVATE to make the changes local to this process only.

This is functional alternative to having support for making a
virtio-pmem device readonly. Unfortunately there is no concept of
readonly virtio-pmem (or any type of NVDIMM/PMEM) in the Linux kernel so
to be able to have a block device that is appears readonly in the guest
requires significant specification and kernel changes.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-03-20 14:46:34 +01:00
..
api vmm: Add a "discard_writes=" to --pmem 2020-03-20 14:46:34 +01:00
acpi.rs vmm: acpi: Remove unused IORT related structures 2020-03-17 12:46:26 +00:00
config.rs vmm: Add a "discard_writes=" to --pmem 2020-03-20 14:46:34 +01:00
cpu.rs pvh: Initialize vCPU regs/sregs for PVH boot 2020-03-13 18:29:44 +01:00
device_manager.rs vmm: Add a "discard_writes=" to --pmem 2020-03-20 14:46:34 +01:00
interrupt.rs msi/msi-x: Prevent from losing masked interrupts 2020-02-25 08:31:14 +00:00
lib.rs vmm: Add id option to VFIO hotplug 2020-03-11 19:50:31 +01:00
memory_manager.rs vmm: Add "readonly" parameter MemoryManager::create_userspace_mapping 2020-03-20 14:46:34 +01:00
vm.rs build: Remove "pvh_boot" feature flag 2020-03-19 13:05:44 +00:00