From: Dor Laor <[EMAIL PROTECTED]>

It allows picking other NICs than rtl8139.
Use --nictype=xxx, the default is rtl8139.

Signed-off-by: Dor Laor <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>

diff --git a/kvm b/kvm
index 0374fbc..2a7dc85 100755
--- a/kvm
+++ b/kvm
@@ -55,6 +55,12 @@ optparser.add_option('--no-tap',
                      default = not privileged,
                      )
 
+optparser.add_option('--nictype',
+                     help = 'use this specific nic type (vendor)',
+                     dest = 'nictype',
+                     default = 'rtl8139',
+                     )
+
 optparser.add_option('--mac',
                      help = 'use this specific mac addr',
                      dest = 'mac',
@@ -239,7 +245,7 @@ if not options.notap:
         mac_components[0] = 'a0'
         mac = ':'.join(mac_components)
             
-    qemu_args += ('-net', 'nic,macaddr=%s,model=rtl8139' % (mac,),
+    qemu_args += ('-net', 'nic,macaddr=%s,model=%s' % (mac,options.nictype,),
                   '-net', 'tap,script=/etc/kvm/qemu-ifup',)
 
 if options.vnc:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-commits mailing list
kvm-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-commits

Reply via email to