* [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
@ 2009-12-17 21:29 Sebastian Herbszt
2009-12-18 6:12 ` Markus Armbruster
0 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-17 21:29 UTC (permalink / raw)
To: qemu-devel
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".
- Sebastian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-17 21:29 [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq? Sebastian Herbszt
@ 2009-12-18 6:12 ` Markus Armbruster
2009-12-18 8:37 ` Gerd Hoffmann
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Markus Armbruster @ 2009-12-18 6:12 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: qemu-devel
"Sebastian Herbszt" <herbszt@gmx.de> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 6:12 ` Markus Armbruster
@ 2009-12-18 8:37 ` Gerd Hoffmann
2009-12-18 20:00 ` Sebastian Herbszt
2009-12-18 19:58 ` Sebastian Herbszt
2009-12-18 20:24 ` Sebastian Herbszt
2 siblings, 1 reply; 13+ messages in thread
From: Gerd Hoffmann @ 2009-12-18 8:37 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel, Sebastian Herbszt
On 12/18/09 07:12, Markus Armbruster wrote:
> "Sebastian Herbszt"<herbszt@gmx.de> 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
Also needs vlan=0, otherwise you'll end up with an unconnected nic.
cheers,
Gerd
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 6:12 ` Markus Armbruster
2009-12-18 8:37 ` Gerd Hoffmann
@ 2009-12-18 19:58 ` Sebastian Herbszt
2009-12-18 20:56 ` Anthony Liguori
2009-12-18 20:24 ` Sebastian Herbszt
2 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-18 19:58 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel
Markus Armbruster wrote:
> "Sebastian Herbszt" <herbszt@gmx.de> 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
Shouldn't this also be possible with the "-net" syntax? It does accept "addr"
which is pci specific.
- Sebastian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 8:37 ` Gerd Hoffmann
@ 2009-12-18 20:00 ` Sebastian Herbszt
2009-12-18 20:54 ` Anthony Liguori
0 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-18 20:00 UTC (permalink / raw)
To: Gerd Hoffmann, Markus Armbruster; +Cc: qemu-devel
Gerd Hoffmann wrote:
> On 12/18/09 07:12, Markus Armbruster wrote:
>> "Sebastian Herbszt"<herbszt@gmx.de> 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
>
> Also needs vlan=0, otherwise you'll end up with an unconnected nic.
Shouldn't vlan have a default value of 0 like it does with the "-net" syntax?
- Sebastian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 6:12 ` Markus Armbruster
2009-12-18 8:37 ` Gerd Hoffmann
2009-12-18 19:58 ` Sebastian Herbszt
@ 2009-12-18 20:24 ` Sebastian Herbszt
2009-12-18 20:56 ` Anthony Liguori
2 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-18 20:24 UTC (permalink / raw)
To: Markus Armbruster; +Cc: qemu-devel
Markus Armbruster wrote:
> "Sebastian Herbszt" <herbszt@gmx.de> 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.
- Sebastian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 20:00 ` Sebastian Herbszt
@ 2009-12-18 20:54 ` Anthony Liguori
2009-12-18 21:43 ` Sebastian Herbszt
0 siblings, 1 reply; 13+ messages in thread
From: Anthony Liguori @ 2009-12-18 20:54 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: qemu-devel, Gerd Hoffmann, Markus Armbruster
Sebastian Herbszt wrote:
> Gerd Hoffmann wrote:
>> On 12/18/09 07:12, Markus Armbruster wrote:
>>> "Sebastian Herbszt"<herbszt@gmx.de> 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
>>
>> Also needs vlan=0, otherwise you'll end up with an unconnected nic.
>
> Shouldn't vlan have a default value of 0 like it does with the "-net"
> syntax?
No, you don't actually have to tie it to a vlan.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 19:58 ` Sebastian Herbszt
@ 2009-12-18 20:56 ` Anthony Liguori
0 siblings, 0 replies; 13+ messages in thread
From: Anthony Liguori @ 2009-12-18 20:56 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: Markus Armbruster, qemu-devel
Sebastian Herbszt wrote:
> Markus Armbruster wrote:
>> "Sebastian Herbszt" <herbszt@gmx.de> 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
>
> Shouldn't this also be possible with the "-net" syntax? It does accept
> "addr"
> which is pci specific.
addr= is a hack. It predates qdev-ification.
-device is now the preferred way to do this sort of thing.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 20:24 ` Sebastian Herbszt
@ 2009-12-18 20:56 ` Anthony Liguori
2009-12-18 21:16 ` Sebastian Herbszt
0 siblings, 1 reply; 13+ messages in thread
From: Anthony Liguori @ 2009-12-18 20:56 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: Markus Armbruster, qemu-devel
Sebastian Herbszt wrote:
> Markus Armbruster wrote:
>> "Sebastian Herbszt" <herbszt@gmx.de> 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.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 20:56 ` Anthony Liguori
@ 2009-12-18 21:16 ` Sebastian Herbszt
2009-12-21 12:37 ` Markus Armbruster
0 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-18 21:16 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Markus Armbruster, qemu-devel
Anthony Liguori wrote:
> Sebastian Herbszt wrote:
>> Markus Armbruster wrote:
>>> "Sebastian Herbszt" <herbszt@gmx.de> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 20:54 ` Anthony Liguori
@ 2009-12-18 21:43 ` Sebastian Herbszt
2009-12-18 23:23 ` Anthony Liguori
0 siblings, 1 reply; 13+ messages in thread
From: Sebastian Herbszt @ 2009-12-18 21:43 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Gerd Hoffmann, Markus Armbruster
Anthony Liguori wrote:
> Sebastian Herbszt wrote:
>> Gerd Hoffmann wrote:
>>> On 12/18/09 07:12, Markus Armbruster wrote:
>>>> "Sebastian Herbszt"<herbszt@gmx.de> 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
>>>
>>> Also needs vlan=0, otherwise you'll end up with an unconnected nic.
>>
>> Shouldn't vlan have a default value of 0 like it does with the "-net"
>> syntax?
>
> No, you don't actually have to tie it to a vlan.
Actually you have to else networking doesn't work at all. Without specifying
"vlan" with the "-device" syntax you end up with vlan=<null> and not vlan=0
with "info qtree".
- Sebastian
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 21:43 ` Sebastian Herbszt
@ 2009-12-18 23:23 ` Anthony Liguori
0 siblings, 0 replies; 13+ messages in thread
From: Anthony Liguori @ 2009-12-18 23:23 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: qemu-devel, Gerd Hoffmann, Markus Armbruster
Sebastian Herbszt wrote:
> Actually you have to else networking doesn't work at all. Without
> specifying
> "vlan" with the "-device" syntax you end up with vlan=<null> and not
> vlan=0
> with "info qtree".
-netdev type=tap,id=mynic -device ne2k_isa,irq=5,iobase=0x280,id=mynic
One of the changes in 0.12 allows for a network configuration that does
not have the builtin hub (aka vlans). This is really important for a
number of reasons. The main is that it allows for much more aggressive
optimization without having to teach the vlan code how to deal with
things like software GSO.
That might look awkward, but that's because it's designed to be used
from a config file. The config entry for that is:
[device "mynic"]
driver = "ne2k_isa"
irq = "5"
iobase = "0x280"
[netdev "mynic"]
type = "tap"
Which looks pretty nice IMHO.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq?
2009-12-18 21:16 ` Sebastian Herbszt
@ 2009-12-21 12:37 ` Markus Armbruster
0 siblings, 0 replies; 13+ messages in thread
From: Markus Armbruster @ 2009-12-21 12:37 UTC (permalink / raw)
To: Sebastian Herbszt; +Cc: qemu-devel
"Sebastian Herbszt" <herbszt@gmx.de> writes:
> Anthony Liguori wrote:
>> Sebastian Herbszt wrote:
>>> Markus Armbruster wrote:
>>>> "Sebastian Herbszt" <herbszt@gmx.de> 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.
Unlike -net nic, -device doesn't suppress the default NIC. Unfortunate.
You can get rid of it with -nodefaults, but that also rids you of other
default devices.
[...]
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-12-21 12:38 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 21:29 [Qemu-devel] ne2k_isa: how to specify a custom iobase and irq? Sebastian Herbszt
2009-12-18 6:12 ` Markus Armbruster
2009-12-18 8:37 ` Gerd Hoffmann
2009-12-18 20:00 ` Sebastian Herbszt
2009-12-18 20:54 ` Anthony Liguori
2009-12-18 21:43 ` Sebastian Herbszt
2009-12-18 23:23 ` Anthony Liguori
2009-12-18 19:58 ` Sebastian Herbszt
2009-12-18 20:56 ` Anthony Liguori
2009-12-18 20:24 ` Sebastian Herbszt
2009-12-18 20:56 ` Anthony Liguori
2009-12-18 21:16 ` Sebastian Herbszt
2009-12-21 12:37 ` Markus Armbruster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).