Re: [Qemu-devel] [PATCH] tap: use an exit notifier to call down_script

2016-07-12 Thread Jason Wang
On 2016年07月12日 15:51, Paolo Bonzini wrote: On 12/07/2016 09:43, Jason Wang wrote: On 2016年07月11日 22:48, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae63a46f23116715dff8d130c,

Re: [Qemu-devel] [PATCH] tap: use an exit notifier to call down_script

2016-07-12 Thread Paolo Bonzini
On 12/07/2016 09:43, Jason Wang wrote: > > > On 2016年07月11日 22:48, marcandre.lur...@redhat.com wrote: >> From: Marc-André Lureau >> >> We would like to move back net_cleanup() at the end of main function, >> like it used to be until f30dbae63a46f23116715dff8d130c, but minimum >> tap cleanup is

Re: [Qemu-devel] [PATCH] tap: use an exit notifier to call down_script

2016-07-12 Thread Jason Wang
On 2016年07月11日 22:48, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae63a46f23116715dff8d130c, but minimum tap cleanup is necessary regarless at exit() time. Use an exit notifier t

[Qemu-devel] [PATCH] tap: use an exit notifier to call down_script

2016-07-11 Thread marcandre . lureau
From: Marc-André Lureau We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae63a46f23116715dff8d130c, but minimum tap cleanup is necessary regarless at exit() time. Use an exit notifier to call TAP down_script. If net_cleanup() is called first, the