Changeset fbfe59d in mainline for tools/ew.py


Ignore:
Timestamp:
2018-06-25T21:45:05Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8119363
Parents:
2498b95 (diff), e3107e2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'virtio-net'

This commit merges basic support for the virtio-net NIC. As of now, the
driver does not support any advanced features that might be supported by
the device. Also device removal is not yet supported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r2498b95 rfbfe59d  
    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
     
    326331def usage():
    327332        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" %
     333        print("%s [-d] [-h] [-net e1k|rtl8139|ne2k|virtio-net] [-nohdd] [-nokvm] [-nonet] [-nosnd] [-nousb] [-noxhci] [-notablet]\n" %
    329334            os.path.basename(sys.argv[0]))
    330335        print("-d\tDry run: do not run the emulation, just print the command line.")
     
    360365                        elif sys.argv[i] == 'ne2k':
    361366                                overrides['net']['ne2k'] = True
     367                        elif sys.argv[i] == 'virtio-net':
     368                                overrides['net']['virtio-net'] = True
    362369                        else:
    363370                                usage()
Note: See TracChangeset for help on using the changeset viewer.