Skip to content

Commit a15d19d

Browse files
author
Alexandre Ghiti
committed
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.
1 parent 6331cfa commit a15d19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/qemu/qemu.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ var archConfigs = map[string]*archConfig{
191191
},
192192
"linux/riscv64": {
193193
Qemu: "qemu-system-riscv64",
194-
QemuArgs: "-machine virt",
194+
QemuArgs: "-machine virt -cpu rv64,sv48=on",
195195
NetDev: "virtio-net-pci",
196196
RngDev: "virtio-rng-pci",
197197
UseNewQemuImageOptions: true,

0 commit comments

Comments
 (0)