Releases: rust-vmm/vm-memory
Releases · rust-vmm/vm-memory
vm-memory-v0.17.1
vm-memory-v0.17.0
Changelog
[v0.17.0]
Added
- [#311] Allow compiling without the ReadVolatile and WriteVolatile implementations
- [#312]
GuestRegionContainer, a generic container ofGuestMemoryRegions, generalizingGuestMemoryMmap(which
is now a type alias forGuestRegionContainer<GuestRegionMmap>). - [#338] Make
GuestMemoryAtomicalways implementClone. - [#338] Make
GuestAddressSpacea subtrait ofClone. - [#339] Add
GuestMemory::get_slices()
Changed
- [#307] Move
read_volatile_from,read_exact_volatile_from,
write_volatile_toandwrite_all_volatile_tofunctions from theGuestMemorytrait to theBytestrait. - [#312]: Give
GuestMemory::find_regionandGuestMemory::num_regions
a default implementation, based on linear search. - [#312]: Provide a marker trait,
GuestMemoryRegionBytes, which enables a default implementation ofBytes<MemoryRegionAddress>
for aGuestMemoryRegionif implemented. - [#312]: Adjust error types returned from
GuestMemoryMmap::from_ranges[_with_files]
andGuestRegionMmap::from_rangeto be separate from the error type returned byGuestRegionCollectionfunctions.
Change return type ofGuestRegionMmap::newfromResulttoOption. - [#324]
GuestMemoryRegion::bitmap()now returns aBitmapSlice. Accessing the full bitmap is now possible only if the type of the memory region is know, for example withMmapRegion::bitmap(). - [#339] Implement
Bytes::load()andBytes::store()withget_slices()instead ofto_region_addr()
Removed
- [#307] Remove deprecated functions
Bytes::read_from,Bytes::read_exact_from,
Bytes::write_to,Bytes::write_all_to,GuestMemory::as_slice,GuestMemory::as_slice_mut,GuestMemory::with_regions,
GuestMemory::with_regions_mut,GuestMemory::map_and_fold,VolatileSlice::as_ptr,VolatileRef::as_ptr, and
VolatileArrayRef::as_ptr. - [#320] Drop
check_file_offsetcheck when usingMmapRegionBuilder.
Themmap(2)syscall itself already validates that offset and length are valid, and trying to replicate this check
in userspace ended up being imperfect.
Fixed
- [#339] Fix
Bytes::read()andBytes::write()not to ignoretry_access()'scountparameter
Deprecated
- [#349] Deprecate
GuestMemory::try_access(). UseGuestMemory::get_slices()instead.
vm-memory-v0.16.2
vm-memory-v0.16.1
vm-memory-v0.16.0
vm-memory-v0.15.0
Changelog
[v0.15.0]
Added
- [#270] atomic_bitmap: add capability to reset bits range
- [#285] Annotated modules in lib.rs to indicate their feature
dependencies such that it is reflected in the docs, enhancing documentation clarity for users.
Changed
- [#275] Fail builds on non 64-bit platforms.
Fixed
- [#279] Remove restriction from
read_volatile_fromandwrite_volatile_into
that made it copy data it chunks of 4096.
vm-memory-v0.14.1
Changelog
[v0.14.1]
Fixed
- [#279] Remove restriction from
read_volatile_fromandwrite_volatile_intothat made it copy data it chunks of 4096.
vm-memory-v0.14.0
vm-memory-v0.13.1
vm-memory-v0.13.0
Changelog
[v0.13.0]
Added
- [#247] Add
ReadVolatileand
WriteVolatiletraits which are equivalents ofRead/Writewith volatile
access semantics.