qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Regression "Warning: more nics requested than this mach


From: Peter Maydell
Subject: Re: [Qemu-devel] Regression "Warning: more nics requested than this machine supports"
Date: Fri, 20 May 2011 12:19:33 +0100

On 16 May 2011 17:58, Markus Armbruster <address@hidden> wrote:
>    $ qemu-system-x86_64 -nodefaults -enable-kvm -m 384 -vnc :0 -S -netdev 
> user,id=net0 -device e1000,netdev=net0
>    Warning: more nics requested than this machine supports; some have been 
> ignored
>    (qemu) info network
>    Devices not on any VLAN:
>      net0: net=10.0.2.0, restricted=n peer=e1000.0
>      e1000.0: model=e1000,macaddr=52:54:00:12:34:56 peer=net0
>
> Culprit is
>    net: Improve the warnings for dubious command line option combinations

> Its count of requested NICs is blissfully unaware of -device.  In my
> example, it comes up with nb_nics == 0 and seen_nics == 1.

As far as I can determine, "-device e1000,netdev=0" doesn't go through
net_init_nic() and doesn't put an entry in the nd_table[] for the NIC.
This means it's broken, because a lot of board models look in nd_table[]
to determine whether the user requested a NIC and whether it's the right
type. So I think that in some ways this is just showing up an existing
problem with trying to instantiate a network card with -device.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]