From: Heinrich Schuchardt Date: Thu, 19 Aug 2021 14:28:33 +0000 (+0200) Subject: launch: board model for RISC-V X-Git-Tag: archive/raspbian/1%1.44.1-5+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f8c73142f83e91ce1e404fe4725d7fb60be8fea9;p=libguestfs.git launch: board model for RISC-V 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 Gbp-Pq: Name 0022-launch-board-model-for-RISC-V.patch --- diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h index ea3924a0..5003d8a2 100644 --- a/lib/guestfs-internal.h +++ b/lib/guestfs-internal.h @@ -148,6 +148,9 @@ guestfs_int_cleanup_gl_recursive_lock_unlock (void *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.