As part of https://github.com/firecracker-microvm/firecracker/pull/2574 we refactored vsock in order to use vm-memory methods instead of raw pointers. For performance reasons and limitations related to our vm-memory wrapper crate we used GuestMemoryRegion::read_from() and GuestMemoryRegion::write_to()
After dirty bitmap tracking is merged in rust-vmm/vm-memory we should be able to use GuestMemory::read_from() and GuestMemory::write_to() directly.
As part of https://github.com/firecracker-microvm/firecracker/pull/2574 we refactored vsock in order to use vm-memory methods instead of raw pointers. For performance reasons and limitations related to our vm-memory wrapper crate we used
GuestMemoryRegion::read_from()
andGuestMemoryRegion::write_to()
After dirty bitmap tracking is merged in
rust-vmm/vm-memory
we should be able to use GuestMemory::read_from() and GuestMemory::write_to() directly.