From 98966d2a88e63c2ae4ffbce0c15b18a4cfef0991 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 23 Jul 2024 16:32:14 +0200 Subject: vm/qemu: use the maximum available CPU on ARM64 This is needed to have access to newer features like nested virtualization. Because those features slow down CPU emulation in QEMU, disable SVE and pointer authentication, which are of less importance for us now. --- vm/qemu/qemu.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'vm') diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 958523b6f..f187471a1 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -149,10 +149,13 @@ var archConfigs = map[string]*archConfig{ }, }, "linux/arm64": { - Qemu: "qemu-system-aarch64", - QemuArgs: "-machine virt,virtualization=on,gic-version=max -cpu cortex-a57 -accel tcg,thread=multi", - NetDev: "virtio-net-pci", - RngDev: "virtio-rng-pci", + Qemu: "qemu-system-aarch64", + // Disable SVE and pointer authentication for now, they significantly slow down + // the emulation and are unlikely to bring a lot of new coverage. + QemuArgs: strings.Join([]string{"-machine virt,virtualization=on,gic-version=max ", + "-cpu max,sve=off,pauth=off -accel tcg,thread=multi"}, ""), + NetDev: "virtio-net-pci", + RngDev: "virtio-rng-pci", CmdLine: []string{ "root=/dev/vda", "console=ttyAMA0", -- cgit mrf-deployment