summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-11-16 23:28:33 +0000
committerAlyssa Ross <hi@alyssa.is>2021-11-26 18:00:45 +0000
commit619b5c56bbb9e6139c278e1abbeb960a59cb92c9 (patch)
treed629b9c4f1071dee8183b81a58222bc0ab12a222 /Makefile
parent7ebf1470ff685b3d14554abd5b22cbe386486eb5 (diff)
downloadspectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar.gz
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar.bz2
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar.lz
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar.xz
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.tar.zst
spectrum-619b5c56bbb9e6139c278e1abbeb960a59cb92c9.zip
Makefile: add an IOMMU to the test VM
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b1e4ad2..3c67ea3 100644
--- a/Makefile
+++ b/Makefile
@@ -100,14 +100,15 @@ clean:
 
 run: build/test.img
 	$(QEMU_KVM) -cpu host -m 6G \
+	    -machine q35,kernel=$(KERNEL),kernel-irqchip=split \
 	    -display gtk,gl=on \
 	    -qmp unix:vmm.sock,server,nowait \
 	    -drive file=build/test.img,if=virtio,format=raw,readonly=on \
-	    -kernel $(KERNEL) \
-	    -append "console=ttyS0 root=/dev/vda1" \
+	    -append "console=ttyS0 root=/dev/vda1 intel_iommu=on" \
 	    -chardev pty,id=virtiocon0 \
 	    -device virtio-serial-pci \
 	    -device virtconsole,chardev=virtiocon0 \
+	    -device intel-iommu,intremap=on \
 	    -device virtio-vga-gl
 .PHONY: run