From: Heinrich Schuchardt Date: Fri, 23 Feb 2024 16:29:20 +0000 (+0100) Subject: detect-virt: allow detection via SMBIOS on RISC-V X-Git-Tag: v256-rc1~755^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31465%2Fhead;p=thirdparty%2Fsystemd.git detect-virt: allow detection via SMBIOS on RISC-V SMBIOS support in QEMU for RISC-V is merged upstream. Signed-off-by: Heinrich Schuchardt --- diff --git a/src/basic/virt.c b/src/basic/virt.c index 353bf373c3a..98ef0ab3323 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -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 */