rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
299 stars 97 forks source link

volatile_memory: Add helpers to copy to/from volatile slice #239

Closed vireshk closed 1 year ago

vireshk commented 1 year ago

Add separate helpers to copy from and to the volatile slice.

This allows the real logic to be present at a single place, which can be easily updated for special cases later on. For example extra memory mapping for systems where the regions can't be mapped in advance, like in case of Xen's Grant mappings.