The machine

CPU

The CPU models the virt machine accepts, each behaving as in QEMU 11.1.1, and what the core implements.

Every -cpu model is QEMU's, and it behaves as it does in QEMU 11.1.1's emulator. The guest reads the identity and feature registers QEMU gives it, instructions for features the model leaves out are undefined, and its properties are QEMU's. QEMU's Arm CPU features page describes them.

Models for the virt machine

As in QEMU, -cpu help lists every Arm CPU QEMU knows. The virt machine accepts these:

ArchitectureModels
Arm64 (AArch64)cortex-a35, cortex-a53, cortex-a55, cortex-a57, cortex-a72, cortex-a76, cortex-a710, neoverse-n1, neoverse-n2, neoverse-v1, a64fx
32-bit (Armv7-A)cortex-a7, cortex-a15
Every featuremax

Note As in QEMU, a command line without -cpu gets cortex-a15, a 32-bit CPU. A 64-bit kernel needs an Arm64 model, so name one, such as -cpu cortex-a76, or use -cpu max for every feature.

-cpu host needs a hypervisor, which isn't available here, so it gets the same message QEMU gives on a machine without one.

What the core implements

max has everything below, just as QEMU's max has everything its emulator implements. A named model has what QEMU's version of that model has.

AreaImplemented
IntegerThe complete A64 integer set, LSE and 128-bit atomics, CRC32, FlagM, LRCPC, JSCVT, the MOPS memory copy and set instructions, CSSC, LS64
Floating pointHalf, single and double precision, with all four rounding modes, flush-to-zero, default NaN, NaN propagation order and every FPSR flag
Advanced SIMDThe full vector and scalar set, with FP16, RDM, DotProd, FHM, FCMA, BF16 and I8MM
CryptoAES, SHA-1, SHA-256, SHA-512, SHA-3, SM3, SM4, and 64-bit polynomial multiply
Scalable vectorsSVE and SVE2 at vector lengths from 128 to 2048 bits; SME and SME2
SecurityPointer authentication, BTI, MTE, and the Realm Management Extension (-cpu max,x-rme=on)
32-bitAArch32 (A32 and T32) at every exception level: on the 32-bit models, and with aarch64=off on the models that support it (cortex-a35, cortex-a53, cortex-a55, cortex-a57, cortex-a72 and max)
DebugSelf-hosted debug (breakpoints, watchpoints, software step) and a PMUv3

Exception levels

As in QEMU, Linux boots at EL1 by default. -M virt,virtualization=on adds EL2, with the Virtualization Host Extensions and stage-2 translation, and -M virt,secure=on adds EL3 and the Secure world.

See also