Re: [libvirt] [PATCH] vhost-user: no need to remove chardev when remove netdev

2018-01-04 Thread Michal Privoznik
On 12/18/2017 10:43 AM, linzhecheng wrote: > We use virsh detach-device to hot-unplug a vhost-user net card, > and libvirtd will issue qmp_netdev_del, qmp_chardev_remove and > qmp_netdev_del. However, in qmp_netdev_del, qemu will remove > the chardev when cleanup the netdev. So libvirtd has no need

[libvirt] [PATCH] vhost-user: no need to remove chardev when remove netdev

2017-12-18 Thread linzhecheng
We use virsh detach-device to hot-unplug a vhost-user net card, and libvirtd will issue qmp_netdev_del, qmp_chardev_remove and qmp_netdev_del. However, in qmp_netdev_del, qemu will remove the chardev when cleanup the netdev. So libvirtd has no need to issue qmp_chardev_remove to qemu any more. Cha