Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-09-02 Thread Michael S. Tsirkin
On Mon, Sep 01, 2014 at 07:40:18PM +0100, Stefan Hajnoczi wrote: > On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: > > For all NICs(except virtio-net) emulated by qemu, > > Such as e1000, rtl8139, pcnet and ne2k_pci, > > Qemu can still receive packets when VM is not running. > > > >

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-09-01 Thread Stefan Hajnoczi
On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > > If this happened in *migration's* last PAUSE VM stage, but > before the end

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-27 Thread zhanghailiang
On 2014/8/27 19:59, Michael S. Tsirkin wrote: On Wed, Aug 27, 2014 at 01:53:21PM +0200, Michael S. Tsirkin wrote: On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: For all NICs(except virtio-net) emulated by qemu, Such as e1000, rtl8139, pcnet and ne2k_pci, Qemu can still receive p

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-27 Thread Michael S. Tsirkin
On Wed, Aug 27, 2014 at 01:53:21PM +0200, Michael S. Tsirkin wrote: > On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: > > For all NICs(except virtio-net) emulated by qemu, > > Such as e1000, rtl8139, pcnet and ne2k_pci, > > Qemu can still receive packets when VM is not running. > >

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-27 Thread Michael S. Tsirkin
On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > > If this happened in *migration's* last PAUSE VM stage, but > before the end

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-27 Thread Juan Quintela
zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > > If this happened in *migration's* last PAUSE VM stage, but > before the end of the migration, the new receiving packet

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-26 Thread Jason Wang
On 08/26/2014 04:06 PM, zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > > If this happened in *migration's* last PAUSE VM stage, but > before the end of the migration, t

[Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-08-26 Thread zhanghailiang
For all NICs(except virtio-net) emulated by qemu, Such as e1000, rtl8139, pcnet and ne2k_pci, Qemu can still receive packets when VM is not running. If this happened in *migration's* last PAUSE VM stage, but before the end of the migration, the new receiving packets will possibly dirty parts of RA