Add option for virtio networking

This commit is contained in:
Jeremy Soller 2023-07-07 09:23:52 -06:00
parent 5e89a28c5a
commit 3a1b960bd4
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -78,6 +78,10 @@ else ifeq ($(net),rtl8139)
# RTL8139
QEMUFLAGS+=-netdev user,id=net0 -device rtl8139,netdev=net0 \
-object filter-dump,id=f1,netdev=net0,file=$(BUILD)/network.pcap
else ifeq ($(net),virtio)
# virtio-net
QEMUFLAGS+=-netdev user,id=net0 -device virtio-net,netdev=net0 \
-object filter-dump,id=f1,netdev=net0,file=$(BUILD)/network.pcap
else
ifneq ($(bridge),)
QEMUFLAGS+=-netdev bridge,br=$(bridge),id=net0 -device e1000,netdev=net0,id=nic0