In a typical Virtual Machine Monitor (VMM) there are several components, such
as boot loader, virtual device drivers, virtio backend drivers and vhost
drivers, that need to access the VM physical memory. The vm-memory crate
provides a set of traits to decouple VM memory consumers from VM memory
providers. Based on these traits, VM memory consumers can access the physical
memory of the VM without knowing the implementation details of the VM memory
provider. Thus VMM components based on these traits can be shared and reused by
multiple virtualization solutions.
The detailed design of the vm-memory crate can be found here.
Platform Support
Arch: x86, AMD64, ARM64
OS: Linux/Unix/Windows
Usage
Add vm-memory as a dependency in Cargo.toml
[dependencies]
vm-memory = "*"
Then add extern crate vm-memory; to your crate root.
Examples
Creating a VM physical memory object in hypervisor specific ways using the
GuestMemoryMmap implementation of the GuestMemory trait:
vm-memory
Design
In a typical Virtual Machine Monitor (VMM) there are several components, such as boot loader, virtual device drivers, virtio backend drivers and vhost drivers, that need to access the VM physical memory. The
vm-memorycrate provides a set of traits to decouple VM memory consumers from VM memory providers. Based on these traits, VM memory consumers can access the physical memory of the VM without knowing the implementation details of the VM memory provider. Thus VMM components based on these traits can be shared and reused by multiple virtualization solutions.The detailed design of the
vm-memorycrate can be found here.Platform Support
Usage
Add
vm-memoryas a dependency inCargo.tomlThen add
extern crate vm-memory;to your crate root.Examples
GuestMemoryMmapimplementation of theGuestMemorytrait:License
This project is licensed under either of