rvm-hal
Platform-agnostic hardware abstraction traits for the RVM microhypervisor.
Defines the trait interfaces that concrete platform implementations (AArch64,
RISC-V, x86-64) must satisfy. All trait methods return RvmResult and pass
borrowed slices rather than owned buffers. The trait definitions themselves
contain no unsafe code.
Key Traits
Platform-- CPU discovery, total memory query, haltMmuOps-- stage-2 page table management (map, unmap, translate, TLB flush)TimerOps-- monotonic nanosecond timer with one-shot deadline supportInterruptOps-- interrupt enable/disable, acknowledge, end-of-interrupt
Example
use ;
use ;
Design Constraints
- DC-15:
#![no_std],#![forbid(unsafe_code)],#![deny(missing_docs)] - ADR-133: all trait methods return
RvmResult; zero-copy semantics
Workspace Dependencies
rvm-types