mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-26 07:44:05 +00:00
Complete implementation of the RVM microhypervisor: 13 Rust crates (all #![no_std], #![forbid(unsafe_code)]): - rvm-types: Foundation types (64-byte WitnessRecord, ~40 ActionKind variants) - rvm-hal: AArch64 EL2 HAL (stage-2 page tables, PL011 UART, GICv2, timer) - rvm-cap: Capability system (P1/P2 proof verification, derivation trees) - rvm-witness: Witness logging (FNV-1a hash chain, ring buffer, replay) - rvm-proof: Proof engine (3-tier, constant-time P2 evaluation) - rvm-partition: Partition model (lifecycle, split/merge, IPC, device leases) - rvm-sched: Scheduler (2-signal priority, SMP coordinator, switch hot path) - rvm-memory: Memory tiers (buddy allocator, 4-tier, RLE compression) - rvm-coherence: Coherence engine (Stoer-Wagner mincut, adaptive frequency) - rvm-boot: Bare-metal boot (7-phase measured, EL2 entry, linker script) - rvm-wasm: Agent runtime (7-state lifecycle, migration, quotas) - rvm-security: Security gate (validation, attestation, DMA budget) - rvm-kernel: Integration kernel (boot/tick/create/destroy) 602 tests, 0 failures, 0 clippy warnings. 21 criterion benchmarks (all ADR targets exceeded). 9 ADRs (132-140), 15 design constraints (DC-1 through DC-15). 11 security findings addressed. Co-Authored-By: claude-flow <ruv@ruv.net>
1.2 KiB
1.2 KiB
rvm-tests
Cross-crate integration tests for the RVM microhypervisor.
This crate exercises the public APIs of all 13 RVM subsystem crates in
combination. It is not published and exists solely for cargo test
validation of the workspace.
What is Tested
PartitionIdround-trip and VMID extractionCoherenceScoreclamping and threshold checksWitnessHashzero detectionWitnessRecordsize assertion (must be exactly 64 bytes)CapTokenrights checking (single and combined rights)GuestPhysAddr/PhysAddrpage alignment helpersBootTrackersequential phase completion and out-of-order rejectionWasmModuleInfoheader validation (magic, version, truncated input)GateRequestsecurity enforcement (type match and mismatch)WitnessLogappend and length trackingWitnessEmitterrecord construction with action kind and actorEmaFilterinitial sample pass-through and EMA computationPartitionManagercreate and lookuprvm-kernelversion and crate count constantsActionKindsubsystem discriminantfnv1a_64determinism
Running
cargo test -p rvm-tests
Workspace Dependencies
All 13 RVM crates (rvm-types through rvm-kernel).