Re: [Qemu-devel] [PATCH v4 2/5] vhost: reset vhost net when virtio_net_reset happens

2015-11-12 Thread Michael S. Tsirkin
On Wed, Nov 11, 2015 at 09:24:38PM +0800, Yuanhan Liu wrote: > When a virtio net driver is unloaded (unbind), virtio_net_reset happens. > For vhost net, we should also send a message (RESET_OWNER) to the backend > to do some proper reset settings. > > Signed-off-by: Yuanhan Liu How about we just

[Qemu-devel] [PATCH v4 2/5] vhost: reset vhost net when virtio_net_reset happens

2015-11-11 Thread Yuanhan Liu
When a virtio net driver is unloaded (unbind), virtio_net_reset happens. For vhost net, we should also send a message (RESET_OWNER) to the backend to do some proper reset settings. Signed-off-by: Yuanhan Liu --- hw/net/vhost_net.c | 20 ++-- hw/net/virtio-net.c | 14