[Qemu-devel] Re: [PATCHv3] net: delay freeing peer host device

2010-10-06 Thread Michael S. Tsirkin
On Wed, Oct 06, 2010 at 09:48:06AM -0600, Alex Williamson wrote: > > +void qemu_del_vlan_client(VLANClientState *vc) > > +{ > > +/* If there is a peer NIC, delete and cleanup client, but do not free. > > */ > > +if (!vc->vlan && vc->peer && vc->peer->info->type == > > NET_CLIENT_TYPE_NIC)

[Qemu-devel] Re: [PATCHv3] net: delay freeing peer host device

2010-10-06 Thread Alex Williamson
On Mon, 2010-10-04 at 18:13 +0200, Michael S. Tsirkin wrote: > With -netdev, virtio devices present offload > features to guest, depending on the backend used. > Thus, removing host netdev peer while guest is > active leads to guest-visible inconsistency and/or crashes. > > As a solution, while gu