Changes in tools/ew.py [abf8bd8:2fc9bfd] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rabf8bd8 r2fc9bfd  
    146146        return ' -device rtl8139,vlan=0'
    147147
     148def qemu_nic_virtio_options():
     149        return ' -device virtio-net,vlan=0'
     150
    148151def qemu_net_options():
    149152        if is_override('nonet'):
     
    158161                if 'ne2k' in overrides['net'].keys():
    159162                        nic_options += qemu_nic_ne2k_options()
     163                if 'virtio-net' in overrides['net'].keys():
     164                        nic_options += qemu_nic_virtio_options()
    160165        else:
    161166                # Use the default NIC
     
    211216        if (is_override('nographic')):
    212217                cmdline += ' -nographic'
     218
     219        if ((not is_override('nographic')) and not is_override('noserial')):
     220                cmdline += ' -serial stdio'
    213221
    214222        if (is_override('bigmem')):
     
    326334def usage():
    327335        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" %
    329337            os.path.basename(sys.argv[0]))
    330338        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    338346        print("-notablet\tDisable USB tablet (use only relative-position PS/2 mouse instead), if applicable.")
    339347        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.")
    340349        print("-bigmem\tSets maximum RAM size to 4GB.")
    341350
     
    360369                        elif sys.argv[i] == 'ne2k':
    361370                                overrides['net']['ne2k'] = True
     371                        elif sys.argv[i] == 'virtio-net':
     372                                overrides['net']['virtio-net'] = True
    362373                        else:
    363374                                usage()
     
    394405                elif sys.argv[i] == '-bigmem':
    395406                        overrides['bigmem'] = True
     407                elif sys.argv[i] == '-noserial':
     408                        overrides['noserial'] = True
    396409                elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1:
    397410                        expect_qemu = True
Note: See TracChangeset for help on using the changeset viewer.