diff options
| author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2025-01-08 16:27:20 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-02-13 09:47:32 +0000 |
| commit | 1564f5114bb97c7e6e26d19fbe112970a5f154b6 (patch) | |
| tree | c5aa946a24c31b4e8a53bb59ac4255e75d4439cc /vm | |
| parent | 6d1a5c8f593b4d9522535dbebbb0c5cf68056f22 (diff) | |
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.
Diffstat (limited to 'vm')
| -rw-r--r-- | vm/qemu/qemu.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
