aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-07-23 16:32:14 +0200
committerAlexander Potapenko <glider@google.com>2024-07-29 15:29:47 +0000
commit98966d2a88e63c2ae4ffbce0c15b18a4cfef0991 (patch)
tree5e12b60f0924de5712d891612041215637364d31 /vm
parent7402146ee1d6f2137dbca80db75f9dbef86bafbf (diff)
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.
Diffstat (limited to 'vm')
-rw-r--r--vm/qemu/qemu.go11
1 files changed, 7 insertions, 4 deletions
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",