If the kvm module is not present, we won't see /dev/kvm. Check kvm availability with that. Signed-off-by: greatbridf <greatbridf@icloud.com>
@@ -27,9 +27,13 @@ CARGO_FLAGS := --profile $(PROFILE) --features $(FEATURES)$(if $(SMP),$(COMMA)sm
ifeq ($(HOST),darwin)
QEMU_ACCEL ?= -accel tcg
else ifeq ($(HOST),linux)
+
+ifeq ($(shell ls /dev/kvm),/dev/kvm)
QEMU_ACCEL ?= -accel kvm
endif
+endif
QEMU_ARGS += $(QEMU_ACCEL)
ifneq ($(DEBUG_TRAPS),)