summary refs log tree commit diff
path: root/vm/sys/net/Makefile
diff options
context:
space:
mode:
authorAlyssa Ross <alyssa.ross@unikie.com>2023-07-21 18:00:17 +0000
committerAlyssa Ross <hi@alyssa.is>2023-07-28 12:09:16 +0000
commit76b6acdb22a49e296fda9626398414839c01efbe (patch)
tree1302864439cdbd6498a7756e5907ab14a8968318 /vm/sys/net/Makefile
parentb802fa83f85af9fca0ac3672abb129386170eab1 (diff)
downloadspectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar.gz
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar.bz2
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar.lz
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar.xz
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.tar.zst
spectrum-76b6acdb22a49e296fda9626398414839c01efbe.zip
vm: add support for testing in crosvm
This is useful because it allows comparing how our patched
cloud-hypervisor behaves against crosvm's implementation.

Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
Co-authored-by: Alyssa Ross <hi@alyssa.is>
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Message-Id: <20230721180015.597099-5-hi@alyssa.is>
Diffstat (limited to 'vm/sys/net/Makefile')
-rw-r--r--vm/sys/net/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/vm/sys/net/Makefile b/vm/sys/net/Makefile
index bbeb40b..d31477a 100644
--- a/vm/sys/net/Makefile
+++ b/vm/sys/net/Makefile
@@ -119,6 +119,17 @@ run-cloud-hypervisor: build/host/data/netvm/blk/root.img
 	    --serial pty
 .PHONY: run-cloud-hypervisor
 
+run-crosvm: build/host/data/netvm/blk/root.img
+	$(CROSVM_RUN) \
+	    --disk build/host/data/netvm/blk/root.img \
+	    -p "console=ttyS0 root=PARTLABEL=root" \
+	    --net tap-name=tap0 \
+	    --net tap-name=tap1,mac=0A:B3:EC:80:00:00 \
+	    --serial type=file,hardware=serial,path=build/crosvm.log \
+	    --serial type=stdout,hardware=virtio-console,stdin=true \
+	    $(KERNEL)
+.PHONY: run-crosvm
+
 run: run-$(VMM)
 .PHONY: run