Received: from eggs.gnu.org ([140.186.70.92]:60704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM1y7-0005Ky-P4 for qemu-devel@nongnu.org; Mon, 16 May 2011 13:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QM1y6-000645-QZ for qemu-devel@nongnu.org; Mon, 16 May 2011 13:52:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM1y6-00063u-JF for qemu-devel@nongnu.org; Mon, 16 May 2011 13:52:34 -0400 From: Markus Armbruster Date: Mon, 16 May 2011 18:58:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Regression "Warning: more nics requested than this machine supports" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell Watch this: $ 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 commit f68b9d672b90dedc79aeb9b44607f484dbe46a6b Author: Peter Maydell Date: Tue Mar 22 18:39:40 2011 +0000 net: Improve the warnings for dubious command line option combinations Improve the warnings we give if the user specified a combination of -net options which don't make much sense: * Don't warn about anything if the config is the implicit default "-net user -net nic" rather than one specified by the user (this will only kick in for boards with no NIC or if CONFIG_SLIRP is not set) * Diagnose the case where the user asked for NICs which the board didn't instantiate (for example where the user asked for two NICs but the board only supports one) Signed-off-by: Peter Maydell Signed-off-by: Aurelien Jarno Its count of requested NICs is blissfully unaware of -device. In my example, it comes up with nb_nics == 0 and seen_nics == 1.