Struct dbs_address_space::AddressSpaceLayout
source · Expand description
Address space layout configuration.
The layout configuration must guarantee that mem_start <= mem_end <= phys_end.
Non-memory region should be arranged into the range [mem_end, phys_end).
Fields
phys_end: u64end of guest physical address
mem_start: u64start of guest memory address
mem_end: u64end of guest memory address
Implementations
sourceimpl AddressSpaceLayout
impl AddressSpaceLayout
sourcepub fn new(phys_end: u64, mem_start: u64, mem_end: u64) -> Self
pub fn new(phys_end: u64, mem_start: u64, mem_end: u64) -> Self
Create a new instance of AddressSpaceLayout.
sourcepub fn is_region_valid(&self, region: &AddressSpaceRegion) -> bool
pub fn is_region_valid(&self, region: &AddressSpaceRegion) -> bool
Check whether an region is valid with the constraints of the layout.
Trait Implementations
sourceimpl Clone for AddressSpaceLayout
impl Clone for AddressSpaceLayout
sourcefn clone(&self) -> AddressSpaceLayout
fn clone(&self) -> AddressSpaceLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AddressSpaceLayout
impl Debug for AddressSpaceLayout
sourceimpl PartialEq<AddressSpaceLayout> for AddressSpaceLayout
impl PartialEq<AddressSpaceLayout> for AddressSpaceLayout
sourcefn eq(&self, other: &AddressSpaceLayout) -> bool
fn eq(&self, other: &AddressSpaceLayout) -> bool
impl Eq for AddressSpaceLayout
impl StructuralEq for AddressSpaceLayout
impl StructuralPartialEq for AddressSpaceLayout
Auto Trait Implementations
impl RefUnwindSafe for AddressSpaceLayout
impl Send for AddressSpaceLayout
impl Sync for AddressSpaceLayout
impl Unpin for AddressSpaceLayout
impl UnwindSafe for AddressSpaceLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more