Re: [Qemu-devel] Network isn't clean when qemu exits

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 09:38:43AM +0100, Stefan Hajnoczi wrote: > On Tue, Dec 11, 2012 at 01:57:04PM +0800, Amos Kong wrote: > > In vl.c:main(), tap device would be created when net_init_clients() is > > called. > > "device" option is parsed after calling net_init_clients() by: > > # "qemu_opts_f

Re: [Qemu-devel] Network isn't clean when qemu exits

2012-12-11 Thread Stefan Hajnoczi
On Tue, Dec 11, 2012 at 01:57:04PM +0800, Amos Kong wrote: > In vl.c:main(), tap device would be created when net_init_clients() is called. > "device" option is parsed after calling net_init_clients() by: > # "qemu_opts_foreach(qemu_find_opts("device"), device_init_func, NULL, 1) > > Qemu will exi