net: Warn about "-net nic" options which were ignored
commit48e2faf222cbf4abab7c8e4b3f44229ec98eae7f
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 20 May 2011 15:50:01 +0000 (20 16:50 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jun 2011 12:18:39 +0000 (22 07:18 -0500)
tree394889ebf5ddfaa49862b934fd89a16a7b7bcc5c
parent641f6eae757e5b2cf854fec14038ffd229e9adea
net: Warn about "-net nic" options which were ignored

Diagnose the case where the user asked for a NIC via "-net nic"
but the board didn't instantiate that NIC (for example where the
user asked for two NICs but the board only supports one). Note
that this diagnostic doesn't apply to NICs created through -device,
because those are always instantiated.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
net.c
net.h