Kani: the unsafe and arithmetic paths
A VMM is a machine for doing address arithmetic next tounsafe blocks: guest-physical to host-virtual translation, initrd placement, GDT encoding, page-table entries, dirty-bitmap indexing. A single off-by-one silently corrupts a guest.
Kani is a bounded model checker for Rust: it explores every input within a bound and proves no panic, overflow, or out-of-bounds access occurs. Proof harnesses are co-located with the code they verify (#[cfg(kani)] modules with #[kani::proof] functions at the bottom of the VM, fork, snapshot, and device modules).
unsafe block carries a // SAFETY: comment (lint-enforced), Miri runs over the non-KVM unit tests, and libFuzzer runs over the agent protocol and virtio-blk request parsing.
