pub enum SharedMemoryPrepareType {
SingleMappingOnFirst {
cache_type: MemCacheType,
force: bool,
},
DynamicPerMapping,
}Expand description
Type of Virtio device memory mapping to use.
Variants§
SingleMappingOnFirst
On first attempted mapping, the entire SharedMemoryRegion is configured with declared
MemCacheType. If force is true, preparation is forced on 64-bit platforms even when
disabled by default (e.g. when KVM tdp_mmu is disabled on x86_64).
DynamicPerMapping
No mapping preparation is performed. each mapping is handled individually
Trait Implementations§
Source§fn clone(&self) -> SharedMemoryPrepareType
fn clone(&self) -> SharedMemoryPrepareType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more