Changes in tools/ew.py [abf8bd8:2fc9bfd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/ew.py
rabf8bd8 r2fc9bfd 146 146 return ' -device rtl8139,vlan=0' 147 147 148 def qemu_nic_virtio_options(): 149 return ' -device virtio-net,vlan=0' 150 148 151 def qemu_net_options(): 149 152 if is_override('nonet'): … … 158 161 if 'ne2k' in overrides['net'].keys(): 159 162 nic_options += qemu_nic_ne2k_options() 163 if 'virtio-net' in overrides['net'].keys(): 164 nic_options += qemu_nic_virtio_options() 160 165 else: 161 166 # Use the default NIC … … 211 216 if (is_override('nographic')): 212 217 cmdline += ' -nographic' 218 219 if ((not is_override('nographic')) and not is_override('noserial')): 220 cmdline += ' -serial stdio' 213 221 214 222 if (is_override('bigmem')): … … 326 334 def usage(): 327 335 print("%s - emulator wrapper for running HelenOS\n" % os.path.basename(sys.argv[0])) 328 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k ] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %336 print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" % 329 337 os.path.basename(sys.argv[0])) 330 338 print("-d\tDry run: do not run the emulation, just print the command line.") … … 338 346 print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.") 339 347 print("-nographic\tDisable graphical output. Serial port output must be enabled for this to be useful.") 348 print("-noserial\tDisable serial port output in the terminal.") 340 349 print("-bigmem\tSets maximum RAM size to 4GB.") 341 350 … … 360 369 elif sys.argv[i] == 'ne2k': 361 370 overrides['net']['ne2k'] = True 371 elif sys.argv[i] == 'virtio-net': 372 overrides['net']['virtio-net'] = True 362 373 else: 363 374 usage() … … 394 405 elif sys.argv[i] == '-bigmem': 395 406 overrides['bigmem'] = True 407 elif sys.argv[i] == '-noserial': 408 overrides['noserial'] = True 396 409 elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1: 397 410 expect_qemu = True
Note:
See TracChangeset
for help on using the changeset viewer.