From: Guido Guenther Subject: [PATCH] use rtl8139 for bootp too and adjust docs accordingly Date: Tue, 8 Jan 2008 12:22:56 +0100 Message-ID: <20080108112255.GB6651@bogon.ms20.nix> References: <20071221132611.GA11812@bogon.ms20.nix> <476D6CAF.2030009@qumranet.com> <20071227094136.GB824@bogon.ms20.nix> <47737FD2.1060802@qumranet.com> <20071228202510.GA2980@bogon.ms20.nix> <47756261.4000104@qumranet.com> <20080103094752.GA6778@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <20080103094752.GA6778-DVvpyRRQz99DDGxTMhc9XQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org If we change the default nic, we should do so in all places. Without this PXE booting is broken since we select the wrong pxe etherboot image. Cheers, -- Guido diff --git a/qemu/qemu-doc.texi b/qemu/qemu-doc.texi index 04529a1..accf360 100644 --- a/qemu/qemu-doc.texi +++ b/qemu/qemu-doc.texi @@ -498,7 +498,7 @@ Network options: @item -net nic[,vlan=@var{n}][,macaddr=@var{addr}][,model=@var{type}] Create a new Network Interface Card and connect it to VLAN @var{n} (@var{n} -= 0 is the default). The NIC is an ne2k_pci by default on the PC += 0 is the default). The NIC is an rtl8139 by default on the PC target. Optionally, the MAC address can be changed. If no @option{-net} option is specified, a single NIC is created. Qemu can emulate several different models of network card. diff --git a/qemu/vl.c b/qemu/vl.c index b84ddd5..64f2709 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -9217,7 +9217,7 @@ int main(int argc, char **argv) char buf[1024]; if (net_boot & (1 << i)) { if (model == NULL) - model = "ne2k_pci"; + model = "rtl8139"; snprintf(buf, sizeof(buf), "%s/pxe-%s.bin", bios_dir, model); if (get_image_size(buf) > 0) { if (nb_option_roms >= MAX_OPTION_ROMS) { ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace