From: Hilko Bengen Date: Thu, 30 Dec 2021 20:05:43 +0000 (+0100) Subject: Set special CPU type on RISCV64 X-Git-Tag: archive/raspbian/1%1.46.2-4+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1af44f2fe29333b040fcbcbb15a8571b54e459d;p=libguestfs.git Set special CPU type on RISCV64 Gbp-Pq: Name Set-special-CPU-type-on-RISCV64.patch --- diff --git a/lib/appliance-cpu.c b/lib/appliance-cpu.c index 54ac6e2e..1f50ffa5 100644 --- a/lib/appliance-cpu.c +++ b/lib/appliance-cpu.c @@ -84,6 +84,8 @@ guestfs_int_get_cpu_model (int kvm) #elif defined(__powerpc64__) /* See discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1605071 */ return NULL; +#elif defined(__riscv) + return "rv64"; #else /* On most architectures we can use "max" to get the best possible CPU. * For recent qemu this should work even on TCG.