From: Fabian Vogt Date: Fri, 1 Aug 2025 08:59:09 +0000 (+0200) Subject: virt: Actually use DMI detection on RISC-V as well X-Git-Tag: v258-rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f305c8f4a7d65b758b3392798495a712f6b2c0e3;p=thirdparty%2Fsystemd.git virt: Actually use DMI detection on RISC-V as well When booting Linux with ACPI in QEMU, the device tree is not used and the DT based detection will not work. DMI values are accurate though and indicate QEMU. While detect_vm_dmi_vendor() was enabled for RISC-V in a previous commit, it missed detect_vm_dmi(), so it was never actually used. Fix that. Signed-off-by: Fabian Vogt --- diff --git a/src/basic/virt.c b/src/basic/virt.c index 13917058d88..226d0b53f8d 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -254,7 +254,7 @@ static int detect_vm_smbios(void) { #endif /* defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) */ static Virtualization detect_vm_dmi(void) { -#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) int r; r = detect_vm_dmi_vendor();