From f51a795add6ce979e1754d599733dd6b32c8a650 Mon Sep 17 00:00:00 2001 From: RarDog Date: Thu, 3 Sep 2026 11:43:37 +0300 Subject: [PATCH] feat: add make run-kvm for native host CPU execution --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile b/Makefile index ed581d6..f84aea4 100644 --- a/Makefile +++ b/Makefile @@ -180,6 +180,25 @@ run: image -display none \ -drive file=$(DISK_IMG),format=raw +# Launch QEMU with Native Host CPU via KVM Hardware Acceleration +run-kvm: image + @echo "[QEMU] Launching with Native Host CPU & KVM Hardware Acceleration..." + @echo "[QEMU] Type 'help' for commands. Ctrl+A X to exit QEMU." + @echo "-------------------------------------------------------" + @$(QEMU) \ + -enable-kvm \ + -cpu host \ + -M q35 \ + -smp 4 \ + -m 512M \ + -vga std \ + -netdev user,id=net0 \ + -device e1000,netdev=net0 \ + -serial mon:stdio \ + -no-reboot \ + -display none \ + -drive file=$(DISK_IMG),format=raw + # Run without rebuilding image (faster iteration) qemu: $(DISK_IMG) @echo "[QEMU] Quick launch from existing image..."