dbs-address-space
Design
The dbs-address-space
crate is an address space manager for virtual machines, which manages memory and MMIO resources resident in the guest physical address space.
Main components are:
- AddressSpaceRegion: Struct to maintain configuration information about a guest address region.
- AddressSpaceBase: Base implementation to manage guest physical address space, without support of region hotplug.
- AddressSpaceBase: An address space implementation with region hotplug capability.
/// The `AddressSpace` is a wrapper over [AddressSpaceBase] to support hotplug of
/// address space regions.
Usage
// 1. create several memory regions
let reg = new;
let regions = vec!;
// 2. create layout (depending on archs)
let layout = new;
// 3. create address space from regions and layout
let address_space = from_regions;
License
This project is licensed under Apache License, Version 2.0.