rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
305 stars 98 forks source link

mmap: Add GuestRegionMmap::from_region() #216

Closed vireshk closed 1 year ago

vireshk commented 1 year ago

All call sites are doing similar work currently, i.e. creating a MmapRegion and then passing it to GuestRegionMmap::new().

Add another variant to GuestRegionMmap, to create the structure from raw data.