Re: [PATCH v2 2/3] virtio-net: add missing object_unref()

2021-02-17 Thread Jason Wang
On 2021/2/11 上午1:45, Laurent Vivier wrote: failover_add_primary() calls qdev_device_add() and doesn't unref the device. Because of that, when the device is unplugged a reference is remaining and prevents the cleanup of the object. This prevents to be able to plugin back the failover primary de

[PATCH v2 2/3] virtio-net: add missing object_unref()

2021-02-10 Thread Laurent Vivier
failover_add_primary() calls qdev_device_add() and doesn't unref the device. Because of that, when the device is unplugged a reference is remaining and prevents the cleanup of the object. This prevents to be able to plugin back the failover primary device, with errors like: (qemu) device_add v