Index: tools/ew.py
===================================================================
--- tools/ew.py	(revision 81c63659853f44073f14ce18517b960df834d00c)
+++ tools/ew.py	(revision 5dddac1a17022e630cd47be488e5d976edd0ba7d)
@@ -146,4 +146,7 @@
 	return ' -device rtl8139,vlan=0'
 
+def qemu_nic_virtio_options():
+	return ' -device virtio-net,vlan=0'
+
 def qemu_net_options():
 	if is_override('nonet'):
@@ -158,4 +161,6 @@
 		if 'ne2k' in overrides['net'].keys():
 			nic_options += qemu_nic_ne2k_options()
+		if 'virtio-net' in overrides['net'].keys():
+			nic_options += qemu_nic_virtio_options()
 	else:
 		# Use the default NIC
@@ -320,5 +325,5 @@
 def usage():
 	print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0]))
-	print("%s [-d] [-h] [-net e1k|rtl8139|ne2k] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
+	print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
 	    os.path.basename(sys.argv[0]))
 	print("-d\tDry run: do not run the emulation, just print the command line.")
@@ -352,4 +357,6 @@
 			elif sys.argv[i] == 'ne2k':
 				overrides['net']['ne2k'] = True
+			elif sys.argv[i] == 'virtio-net':
+				overrides['net']['virtio-net'] = True
 			else:
 				usage()
