qemu-patch-raspberry4/net
Michael Roth b890492110 net: fix infinite loop on exit
1ceef9f273 added handling for cleaning
up multiple queues in qemu_del_nic() for cases where multiqueue is in
use. To determine the number of queues it looks at nic->conf->queues,
then iterates through all the queues to cleanup the associated
NetClientStates. If no queues are found, no NetClientStates are deleted.

However, nic->conf->queues is only set when a peer is created via
-netdev or netdev_add, and is otherwise 0. This causes us to spin in
net_cleanup() if we attempt to shut down qemu before adding a host
device.

Since qemu_new_nic() unconditionally creates at least 1
queue/NetClientState at queue idx 0, make qemu_del_nic() always attempt
to clean it up.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-02-07 13:13:39 -06:00
..
checksum.c Change license from GPLv2 to GPLv2+ 2012-02-01 16:24:54 -06:00
clients.h net: reorganize headers 2012-12-19 08:31:29 +01:00
dump.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
hub.c Merge remote-tracking branch 'bonzini/header-dirs' into staging 2012-12-19 17:15:39 -06:00
hub.h net: reorganize headers 2012-12-19 08:31:29 +01:00
Makefile.objs net: move net.c to net/ 2012-12-19 08:29:59 +01:00
net.c net: fix infinite loop on exit 2013-02-07 13:13:39 -06:00
queue.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
slirp.c HMP: add QDict to info callback handler 2013-01-17 10:24:52 -02:00
socket.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
tap-aix.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-bsd.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-haiku.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-linux.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-linux.h tap: import linux multiqueue constants 2013-02-01 11:03:01 -06:00
tap-solaris.c tap: multiqueue support 2013-02-01 11:03:02 -06:00
tap-win32.c tap: support enabling or disabling a queue 2013-02-01 11:03:02 -06:00
tap.c tap: unbreak -netdev tap,fd=X 2013-02-01 18:05:30 -06:00
tap_int.h tap: multiqueue support 2013-02-01 11:03:02 -06:00
util.c net: reorganize headers 2012-12-19 08:31:29 +01:00
util.h net: move parse_macaddr() to net/util.[ch] 2009-12-03 09:41:34 -06:00
vde.c net: add missing include file 2012-12-22 12:06:48 +00:00