| Crates.io | arm_vcpu |
| lib.rs | arm_vcpu |
| version | 0.1.1 |
| created_at | 2025-08-16 01:40:40.395609+00 |
| updated_at | 2025-09-08 07:02:35.076713+00 |
| description | Aarch64 VCPU implementation for Arceos Hypervisor |
| homepage | |
| repository | https://github.com/arceos-hypervisor/arm_vcpu |
| max_upload_size | |
| id | 1797725 |
| size | 81,940 |
AArch64 virtual CPU (vCPU) implementation for hypervisors. This crate provides the core vCPU structure and virtualization-related interface support specifically designed for the AArch64 architecture.
This crate implements the following key components:
Aarch64VCpu: The main virtual CPU structure that manages guest execution stateTrapFrame: Context frame for handling traps and exceptions from guest VMsAdd this to your Cargo.toml:
[dependencies]
arm_vcpu = "0.1"
use arm_vcpu::{Aarch64VCpu, Aarch64VCpuCreateConfig, has_hardware_support};
// Check if hardware virtualization is supported
if has_hardware_support() {
// Create vCPU configuration
let config = Aarch64VCpuCreateConfig::default();
// Create and configure the virtual CPU
let vcpu = Aarch64VCpu::new(config)?;
// Run the virtual CPU
vcpu.run()?;
}
This project is dual-licensed under either:
at your option.