From c5eecd49d536cdbafc9bb770624f503357ab90f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 11 Jul 2022 21:49:05 +0100 Subject: [PATCH] Add QEMU_KVM variable to let users turn kvm off. --- Development/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Development/Makefile b/Development/Makefile index c9b23e5..fd95516 100644 --- a/Development/Makefile +++ b/Development/Makefile @@ -6,6 +6,8 @@ targets = kaem-minimal hex0 ESP_SIZE_MIB = 50 QEMU = qemu-system-x86_64 +QEMU_KVM = -enable-kvm + ifneq ($(wildcard /usr/share/OVMF/OVMF_CODE.fd),) OVMF_IMG=/usr/share/OVMF/OVMF_CODE.fd) else @@ -34,7 +36,8 @@ $(build_dir)/%.o : %.c .PHONY : clean rootfs qemu qemu: $(build_dir)/disk.img $(OVMF_IMG) - $(QEMU) -cpu qemu64 -enable-kvm -net none \ + $(QEMU) -cpu qemu64 -net none \ + $(QEMU_KVM) \ -drive if=pflash,format=raw,unit=0,file=$(OVMF_IMG),readonly=on \ -drive if=ide,format=raw,file=$<