pub fn open_memory_backing_file(
path: &Path,
size: u64,
) -> Result<SharedMemoryFd>Expand description
Open (or create) a file to back guest RAM, and return the appropriate fd/handle for use as shared memory.
If the file is newly created (size 0), it is extended to size bytes.
If it already exists with a different size, an error is returned.