mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-02 22:41:07 +00:00
vhost-user: set link down when the char device is closed
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
This commit is contained in:
parent
463b52f285
commit
d39c87d707
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event)
|
|||
qmp_set_link(name, true, &err);
|
||||
break;
|
||||
case CHR_EVENT_CLOSED:
|
||||
qmp_set_link(name, true, &err);
|
||||
qmp_set_link(name, false, &err);
|
||||
vhost_user_stop(queues, ncs);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue