public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Virtio-for-kvm] [PATCH 4/7] userspace virtio
@ 2007-12-21 14:44 Dor Laor
  0 siblings, 0 replies; only message in thread
From: Dor Laor @ 2007-12-21 14:44 UTC (permalink / raw)
  To: kvm-devel, virtualization, Anthony Liguori, Rusty Russell

 From bf5361f9b8b00f85e93cddf853f8f7f449c8d8c2 Mon Sep 17 00:00:00 2001
From: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Date: Sun, 9 Dec 2007 12:17:36 +0200
Subject: [PATCH] Add NIC vendor option to kvm python script

It allows picking other NIC vendors than rtl8139.
Use --nictype=xxx, the ddefault is rtl8139.

Signed-off-by: Dor Laor <dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
---
 kvm |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

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:
-- 
1.5.3.3


-------------------------------------------------------------------------
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/

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-21 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 14:44 [Virtio-for-kvm] [PATCH 4/7] userspace virtio Dor Laor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox