From 1564f5114bb97c7e6e26d19fbe112970a5f154b6 Mon Sep 17 00:00:00 2001 From: Alexandre Ghiti Date: Wed, 8 Jan 2025 16:27:20 +0000 Subject: vm/qemu: run riscv64 kernel using 4-level page table Riscv is far from having a hw with a 5-level support, so let's focus on the 4-level. --- vm/qemu/qemu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index 525e887be..2b477ffbb 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -191,7 +191,7 @@ var archConfigs = map[string]*archConfig{ }, "linux/riscv64": { Qemu: "qemu-system-riscv64", - QemuArgs: "-machine virt", + QemuArgs: "-machine virt -cpu rv64,sv48=on", NetDev: "virtio-net-pci", RngDev: "virtio-rng-pci", UseNewQemuImageOptions: true, -- cgit mrf-deployment