Re: [Qemu-devel] [PATCH] slirp: use exit notifier for slirp_smb_cleanup

2016-07-13 Thread Paolo Bonzini
On 13/07/2016 04:34, Jason Wang wrote: > > > On 2016年07月12日 18:15, Marc-André Lureau wrote: >> Hi >> >> On Tue, Jul 12, 2016 at 11:23 AM, Paolo Bonzini >> wrote: >>> We would like to move back net_cleanup() at the end of main function, >>> like it used to be until f30dbae63a46f23116715dff8d130

Re: [Qemu-devel] [PATCH] slirp: use exit notifier for slirp_smb_cleanup

2016-07-12 Thread Jason Wang
On 2016年07月12日 18:15, Marc-André Lureau wrote: Hi On Tue, Jul 12, 2016 at 11:23 AM, Paolo Bonzini wrote: We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae63a46f23116715dff8d130c, but minimum cleanup is needed regardless at exit() time for

Re: [Qemu-devel] [PATCH] slirp: use exit notifier for slirp_smb_cleanup

2016-07-12 Thread Marc-André Lureau
Hi On Tue, Jul 12, 2016 at 11:23 AM, Paolo Bonzini wrote: > We would like to move back net_cleanup() at the end of main function, > like it used to be until f30dbae63a46f23116715dff8d130c, but minimum > cleanup is needed regardless at exit() time for slirp's SMB > functionality. Use an exit noti

[Qemu-devel] [PATCH] slirp: use exit notifier for slirp_smb_cleanup

2016-07-12 Thread Paolo Bonzini
We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae63a46f23116715dff8d130c, but minimum cleanup is needed regardless at exit() time for slirp's SMB functionality. Use an exit notifier to call slirp_smb_cleanup. If net_cleanup() is called first, th