| Crates.io | axdevice_base |
| lib.rs | axdevice_base |
| version | 0.1.0 |
| created_at | 2025-08-15 14:43:40.700464+00 |
| updated_at | 2025-08-15 14:43:40.700464+00 |
| description | Basic traits and structures for emulated devices in ArceOS hypervisor. |
| homepage | https://github.com/arceos-hypervisor/axvisor |
| repository | |
| max_upload_size | |
| id | 1796919 |
| size | 95,111 |
Basic device abstraction library for AxVisor virtual device subsystem, designed for no_std environments.
axdevice_base provides core traits, structures, and type definitions for virtual device development, including:
BaseDeviceOps trait: Common interface that all virtual devices must implement.EmulatedDeviceConfig: Device initialization and configuration structure.EmuDeviceType (provided by axvmconfig crate).use axdevice_base::{BaseDeviceOps, EmulatedDeviceConfig, EmuDeviceType};
// Implement a custom device
struct MyDevice { /* ... */ }
impl BaseDeviceOps<axaddrspace::GuestPhysAddrRange> for MyDevice {
// Implement trait methods ...
}
let config = EmulatedDeviceConfig::default();
Issues and PRs are welcome! Please follow the ArceOS-hypervisor project guidelines.
This project is licensed under multiple licenses. You may choose to use this project under any of the following licenses:
You may use this software under the terms of any of these licenses at your option.