feat: add make run-kvm for native host CPU execution
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user