Concepts

How correctness is checked

How Warm64 is tested: every test is first proven on a real Arm chip, with QEMU as a second reference.

An emulator is only as good as its tests. So before a test is used to check Warm64, it's checked against real hardware.

The M3 oracle

The instruction-set tests are assembly programs that check their own results. Each one is built twice:

  • Natively for an Apple M3, where it runs on the real CPU and must pass. That proves the expected results come from Arm silicon, not from Warm64.
  • For Warm64, where it must pass again.

The suites cover integer instructions, floating point, Advanced SIMD, crypto, pointer authentication, system registers, the hypervisor and secure-monitor levels, and 32-bit code.

Randomized suites go further. They run thousands of floating-point and SIMD operations on random inputs, then hash the results and status flags and compare them with the M3's.

The QEMU oracle

The M3 doesn't have every feature: it lacks SVE, SME, SM3 and SM4, MOPS, 128-bit atomics, and the GIC's virtualization. Tests for those run bare-metal under qemu-system-aarch64 -M virt -cpu max as an independent reference, and Warm64 must agree with it. Comparing the two turned up five places where Warm64 differed from QEMU, all fixed since, and one bug in QEMU itself.

The whole machine

System tests boot every supported operating system to its prompt. They check snapshots by saving a booted machine and resuming it in a new one, and they exercise the disks, shared folders, network, sound, USB and 3D graphics from inside the guest.

The QEMU interface

WARM is QEMU 11.1.1's interface, so QEMU 11.1.1 is what it's tested against. Every option, sub-option and device property, every QMP and monitor command, and the behavior of the CPU models, the board and its devices are on one list. Each item is checked by running the same command line on QEMU and on Warm64 and comparing what comes out: the messages and exit status, the QMP and monitor replies, the device tree and ACPI tables, the registers a guest reads, and the migration stream. When the two differ, we fix the difference rather than document it. The few that remain on purpose are listed in warm-system-aarch64.