Skip to content

Commit 4cef472

Browse files
xypronbluca
authored andcommitted
detect-virt: allow detection via SMBIOS on RISC-V
SMBIOS support in QEMU for RISC-V is merged upstream. Signed-off-by: Heinrich Schuchardt <[email protected]> (cherry picked from commit 5041e77) (cherry picked from commit 387a14a)
1 parent 7de8760 commit 4cef472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basic/virt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static Virtualization detect_vm_device_tree(void) {
154154
#endif
155155
}
156156

157-
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64)
157+
#if defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) || defined(__loongarch_lp64) || defined(__riscv)
158158
static Virtualization detect_vm_dmi_vendor(void) {
159159
static const char* const dmi_vendors[] = {
160160
"/sys/class/dmi/id/product_name", /* Test this before sys_vendor to detect KVM over QEMU */

0 commit comments

Comments
 (0)