feat: add make run-kvm for native host CPU execution

This commit is contained in:
RarDog
2026-09-03 11:43:37 +03:00
parent 1c1198c8ef
commit f51a795add
+19
View File
@@ -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..."