On 23 May 2011 09:30, Markus Armbruster <arm...@redhat.com> wrote: > Peter Maydell <peter.mayd...@linaro.org> writes: > >> Don't warn about the default network setup that you get if no command line >> -net options are specified. There are two cases that we would otherwise >> complain about: >> >> (1) board doesn't support a NIC but the implicit "-net nic" requested one > > Maybe such board should declare no_nic, similar to no_parallel & > friends. But that's out of this patch's scope.
I think in the brave new qdev world this kind of thing should be handled generically by warning about any -device requested devices which couldn't be plugged into anything sensible. > This complaint is only added in the next patch, isn't it? I don't mind. It won't explicitly say "you asked for a NIC and didn't get one", but it will make the obscurer complaint "Warning: vlan 0 with no nics", because the implicit '-net user' is then not connected to anything. I was deliberately slightly vague with the comment text so it would be true both before and after the following patch :-) >> (2) CONFIG_SLIRP not set, so the implicit "-net nic" sets up a nic that >> isn't connected to anything > > This one's already there, I think. No, without this patch qemu will complain "Warning: vlan 0 is not connected to host network" if you configured with --disable-slirp. (--disable-slirp seems to have been left out of configure --help; I assume that's an oversight.) -- PMM