diff --git a/vm-allocator/src/address.rs b/vm-allocator/src/address.rs index 30d8ec5ef..73c1b6c8c 100644 --- a/vm-allocator/src/address.rs +++ b/vm-allocator/src/address.rs @@ -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)]