From 5f7136a3690cd118eeef3c84dfbd9f5d0df556d6 Mon Sep 17 00:00:00 2001 From: Xeonacid Date: Wed, 19 Jun 2024 17:56:57 +0800 Subject: [PATCH] vmspawn: define QEMU_MACHINE_TYPE for riscv Use ["virt"](https://www.qemu.org/docs/master/system/target-riscv.html#board-specific-documentation) as a commonly used generic platform on riscv. --- src/vmspawn/vmspawn-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmspawn/vmspawn-util.h b/src/vmspawn/vmspawn-util.h index 6a77b46e2e6..48aca0ee575 100644 --- a/src/vmspawn/vmspawn-util.h +++ b/src/vmspawn/vmspawn-util.h @@ -34,7 +34,7 @@ #if defined(__x86_64__) || defined(__i386__) # define QEMU_MACHINE_TYPE "q35" -#elif defined(__arm__) || defined(__aarch64__) +#elif defined(__arm__) || defined(__aarch64__) || defined(__riscv) # define QEMU_MACHINE_TYPE "virt" #elif defined(__s390__) || defined(__s390x__) # define QEMU_MACHINE_TYPE "s390-ccw-virtio" -- 2.47.3