docs.rs failed to build arcbox-hypervisor-0.4.17
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
arcbox-hypervisor-0.4.10
arcbox-hypervisor
Cross-platform hypervisor abstraction layer for ArcBox.
Overview
This crate provides platform-agnostic traits for virtualization, allowing the same VM management code to work across different operating systems. It abstracts away the differences between macOS Virtualization.framework and Linux KVM.
Features
- Cross-platform abstraction: Unified API for VM creation and management
- macOS support: Native Virtualization.framework backend (Apple Silicon and Intel)
- Linux support: KVM backend for x86_64 and ARM64
- Type-safe configuration: Builder pattern for VM configuration
- Memory management: Guest physical address space abstraction
Core Traits
Hypervisor- Main entry point for creating VMsVirtualMachine- VM lifecycle management (start, stop, memory mapping)Vcpu- Virtual CPU execution and register accessGuestMemory- Guest physical memory read/write operations
Usage
use ;
// Create platform-appropriate hypervisor
let hypervisor = create_hypervisor?;
// Configure VM
let config = builder
.vcpu_count
.memory_size // 4GB
.build;
// Create and start VM
let vm = hypervisor.create_vm?;
Platform Backends
| Platform | Backend | Status |
|---|---|---|
| macOS (Apple Silicon) | Virtualization.framework | Primary |
| macOS (Intel) | Virtualization.framework | Supported |
| Linux (x86_64) | KVM | Supported |
| Linux (ARM64) | KVM | Supported |
License
MIT OR Apache-2.0