Modeling Virtual Machines and Interrupts in TLA+ & PlusCal
summary
Models an ARM GIC and KVM interaction in TLA+ and PlusCal, building a virtual GIC, a KVM guest/hypervisor PlusCal model and a TLA+ GIC model that communicate via a command/ack queue. Verifies safety and liveness; safety check reproduces a real bug (loss of software-generated interrupt state) and fails after 150-step failure while liveness is inconclusive. Shows virtualization register restore/save, priority drop injection, context switches, and that the model catches a fixed kernel bug.
AI-written summary · about
