]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
detect-virt: allow detection via SMBIOS on RISC-V 31465/head
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 23 Feb 2024 16:29:20 +0000 (17:29 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 23 Feb 2024 16:29:20 +0000 (17:29 +0100)
SMBIOS support in QEMU for RISC-V is merged upstream.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
src/basic/virt.c

index 353bf373c3a56e54c85ce4ad860aca48c54f6193..98ef0ab3323aae2ea4b41ab57bdf0d0e089c19ce 100644 (file)
@@ -155,7 +155,7 @@ static Virtualization detect_vm_device_tree(void) {
 #endif
 }
 
-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64)
+#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) || defined(__riscv)
 static Virtualization detect_vm_dmi_vendor(void) {
         static const char* const dmi_vendors[] = {
                 "/sys/class/dmi/id/product_name", /* Test this before sys_vendor to detect KVM over QEMU */