mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
vm-allocator: Add accessors for start and end addresses of allocator
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
7cfeefde57
commit
a6456b50f3
@ -201,6 +201,16 @@ impl AddressAllocator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Start address of the allocator
|
||||||
|
pub fn base(&self) -> GuestAddress {
|
||||||
|
self.base
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Last address of the allocator
|
||||||
|
pub fn end(&self) -> GuestAddress {
|
||||||
|
self.end
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user