]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
detect-virt: allow detection via device-tree on RISC-V
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 23 Feb 2024 16:25:59 +0000 (17:25 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 23 Feb 2024 16:25:59 +0000 (17:25 +0100)
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
src/basic/virt.c

index 375ef28216dc75d7f09024078654dde7094bf250..353bf373c3a56e54c85ce4ad860aca48c54f6193 100644 (file)
@@ -98,7 +98,7 @@ static Virtualization detect_vm_cpuid(void) {
 }
 
 static Virtualization detect_vm_device_tree(void) {
-#if defined(__arm__) || defined(__aarch64__) || defined(__powerpc__) || defined(__powerpc64__)
+#if defined(__arm__) || defined(__aarch64__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__riscv)
         _cleanup_free_ char *hvtype = NULL;
         int r;