mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
vm: add arguments to use virt machine type for qemu-riscv64.
* gnu/system/vm.scm (system-qemu-image/shared-store-script): When target riscv64, add arguments to set qemu virt machine type. Change-Id: I974c82fdd2d5bfc01caff9e6411db38e472b5cd4 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
88a300852f
commit
e6241de15a
1 changed files with 4 additions and 0 deletions
|
@ -295,6 +295,10 @@ (define qemu-exec
|
|||
"-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))
|
||||
|
|
Loading…
Reference in a new issue