Changelog
[v0.17.0]
Added
- [#311] Allow compiling without the ReadVolatile and WriteVolatile implementations
- [#312]
GuestRegionContainer
, a generic container ofGuestMemoryRegion
s, generalizingGuestMemoryMmap
(which
is now a type alias forGuestRegionContainer<GuestRegionMmap>
). - [#338] Make
GuestMemoryAtomic
always implementClone
. - [#338] Make
GuestAddressSpace
a subtrait ofClone
. - [#339] Add
GuestMemory::get_slices()
Changed
- [#307] Move
read_volatile_from
,read_exact_volatile_from
,
write_volatile_to
andwrite_all_volatile_to
functions from theGuestMemory
trait to theBytes
trait. - [#312]: Give
GuestMemory::find_region
andGuestMemory::num_regions
a default implementation, based on linear search. - [#312]: Provide a marker trait,
GuestMemoryRegionBytes
, which enables a default implementation ofBytes<MemoryRegionAddress>
for aGuestMemoryRegion
if implemented. - [#312]: Adjust error types returned from
GuestMemoryMmap::from_ranges[_with_files]
andGuestRegionMmap::from_range
to be separate from the error type returned byGuestRegionCollection
functions.
Change return type ofGuestRegionMmap::new
fromResult
toOption
. - [#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_offset
check 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()
'scount
parameter
Deprecated
- [#349] Deprecate
GuestMemory::try_access()
. UseGuestMemory::get_slices()
instead.