[PATCH] launch: board model for RISC-V
20 Aug
2021
20 Aug
'21
4:54 a.m.
On RISC-V there is no default machine type. Invoking QEMU requires to specify a board model with the -M option. So let's define MACHINE_TYPE as virt. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> --- lib/guestfs-internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h index b3f887935..4097b33fd 100644 --- a/lib/guestfs-internal.h +++ b/lib/guestfs-internal.h @@ -157,6 +157,9 @@ cleanup_mutex_unlock (pthread_mutex_t **ptr) #ifdef __powerpc__ #define MACHINE_TYPE "pseries" #endif +#ifdef __riscv +#define MACHINE_TYPE "virt" +#endif /* Differences in qemu device names on ARMv7 (virtio-mmio), s/390x * (CCW) vs normal hardware with PCI. -- 2.32.0
1921
Age (days ago)
1921
Last active (days ago)
0 comments
1 participants
participants (1)
-
Heinrich Schuchardt