[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/09: vm: add arguments to use virt machine type for qemu-riscv64.
From: |
guix-commits |
Subject: |
08/09: vm: add arguments to use virt machine type for qemu-riscv64. |
Date: |
Sun, 31 Mar 2024 17:05:17 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit e6241de15a2aa04efc99769d768849240eaffea5
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Tue Mar 19 23:18:40 2024 +0800
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>
---
gnu/system/vm.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index d4044a4a39..64cc321ebf 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -295,6 +295,10 @@ useful when FULL-BOOT? is true."
"-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))
- branch master updated (4d79a9cd6b -> 16c7130835), guix-commits, 2024/03/31
- 03/09: bootloader: Add u-boot-qemu-riscv64-bootloader., guix-commits, 2024/03/31
- 04/09: vm: use #$ for kernel-arguments., guix-commits, 2024/03/31
- 05/09: vm: When target riscv64-linux, use u-boot-qemu-riscv64-bootloader., guix-commits, 2024/03/31
- 02/09: gnu: shepherd: Update to 0.10.4., guix-commits, 2024/03/31
- 07/09: linux-initrd: don't add hid-apple module for riscv64-linux., guix-commits, 2024/03/31
- 01/09: ui: Autoload some more., guix-commits, 2024/03/31
- 06/09: gnu: linux-libre-riscv64-generic: add more options., guix-commits, 2024/03/31
- 08/09: vm: add arguments to use virt machine type for qemu-riscv64.,
guix-commits <=
- 09/09: vm: If not the same local architecture, don't enable kvm., guix-commits, 2024/03/31