From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLkCG-0006tm-3n for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:17:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLkCB-0006qJ-Jr for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:17:11 -0500 Received: from [199.232.76.173] (port=55153 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLkCB-0006q9-BF for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:17:07 -0500 Received: from mail.gmx.net ([213.165.64.20]:54962) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NLkCB-0001ok-5N for qemu-devel@nongnu.org; Fri, 18 Dec 2009 16:17:07 -0500 Message-ID: <37C6733CEA434E0A96FA20ED780D28ED@FSCPC> From: "Sebastian Herbszt" References: <154639B97697400DB13CEC80171644F1@FSCPC> <4B2BEC96.7040508@codemonkey.ws> In-Reply-To: <4B2BEC96.7040508@codemonkey.ws> Subject: Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq? Date: Fri, 18 Dec 2009 22:16:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Markus Armbruster , qemu-devel@nongnu.org Anthony Liguori wrote: > Sebastian Herbszt wrote: >> Markus Armbruster wrote: >>> "Sebastian Herbszt" writes: >>> >>>> The default iobase and irq for the ne2k_isa card are 0x300 and 9. >>>> It should be possible to override both using the "-net" syntax like >>>> "-net nic,model=ne2k_isa,irq=5,iobase=0x280". >>> >>> -device ne2k_isa,irq=5,iobase=0x280 >> >> If i specify "-net nic,model=pcnet" i end up only with a pcnet nic. With >> the above syntax i get a e1000 and a ne2k_isa. It also loads the e1000 >> rom. > > Can you supply the full command lines. I'm a little confused about what > you're reporting. "qemu -device ne2k_isa,irq=10" and "info qtree" has e1000 and ne2k_isa. "qemu -net nic,model=pcnet" and "info qtree" has only pcnet. Maybe because of hw/pc.c: if (!pci_enabled || (nd->model && strcmp(nd->model, "ne2k_isa") == 0)) pc_init_ne2k_isa(nd); else pci_nic_init_nofail(nd, "e1000", NULL); - Sebastian