[bug#69899,6/7] vm: add arguments to use virt machine type for qemu-riscv64.
Commit Message
* gnu/system/vm.scm (system-qemu-image/shared-store-script): When target
riscv64, add arguments to set qemu virt machine type.
Change-Id: I974c82fdd2d5bfc01caff9e6411db38e472b5cd4
---
gnu/system/vm.scm | 4 ++++
1 file changed, 4 insertions(+)
@@ -295,6 +295,10 @@ (define* (system-qemu-image/shared-store-script os
"-initrd" #$(file-append os "/initrd")
(format #f "-append ~s"
(string-join #$kernel-arguments " "))))
+ ;; Default qemu-riscv64 have not PCI, virt have it, so we set it.
+ #$@(if (target-riscv64? (or target system))
+ #~("-M" "virt")
+ #~())
#$@(common-qemu-options (if volatile? base-image rw-image)
(map file-system-mapping-source
(cons %store-mapping mappings))