Explore a virtual machine

Twenty-four lessons, QEMU execution records and six models connect exception levels, guest execution, memory protection, virtual I/O, interrupts, timers and read requests.

Study the concepts, combine the execution models, then build the Rust project. Actual WASM executions and measured QEMU records are labelled separately.

Before you start

Build, diagnose and repair

Your reading and questions

Loading learning records…

Demo predictions and repair results appear separately below and are saved on this device.

Read and experiment in order

Put the parts together

From guest I/O to reclaimed buffers

Follow one request through its queue, device, virtual interrupt and reclamation.

Repair the example, then verify it under different conditions.

Interactive experiments

Playback, prediction answers and repairs are tracked separately in this browser.

Build and run the Rust implementation

QEMU execution recording

QEMU recording: boot and EL2 setup

Follow a measured QEMU run alongside Rust and assembly, memory placement, stacks and exception vectors.

Loading…

Local implementation (self-reported): Not recorded

QEMU execution recording

QEMU recording: guest MMIO and resume

Inspect an EL1 UART access trapping to EL2, decoded instruction state, emulated output and guest resumption.

Loading…

Local implementation (self-reported): Not recorded

Run events and interrupts in Rust

QEMU execution recording

QEMU recording: GICv3 virtual interrupts

Connect measured UART output with source and inspect pending/active state, guest acknowledgement, EOI and deactivation.

Loading…

Local implementation (self-reported): Not recorded

QEMU execution recording

QEMU recording: timer expiry and guest resumption

Inspect real Generic Timer expiry, notification, guest handling and rearming using measured counter values and execution logs.

Loading…

Local implementation (self-reported): Not recorded

Run reserved work and I/O in Rust

QEMU execution recording

QEMU recording: virtio-mmio and virtqueue

Follow EL1 register accesses trapped at EL2, descriptor validation, ring-slot wraparound and rejection of malformed requests.

Loading…

Local implementation (self-reported): Not recorded

QEMU execution recording

QEMU recording: read I/O and completion

Compare disk transfer, used-ring publication, virtual interrupt delivery and guest reclamation across successful, boundary and rejected requests.

Loading…

Local implementation (self-reported): Not recorded

My learning