summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWen Congyang <wency@cn.fujitsu.com>2015-11-11 14:53:29 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-11-25 13:42:38 +0200
commitd39c87d70763f2755d1d7a719817b06f0281fb01 (patch)
tree98463068a2ec5d1e76ae687c00f260528813f282
parent463b52f285164ec3dc0649763e06e40cea9e8a1f (diff)
downloadhqemu-d39c87d70763f2755d1d7a719817b06f0281fb01.zip
hqemu-d39c87d70763f2755d1d7a719817b06f0281fb01.tar.gz
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>
-rw-r--r--net/vhost-user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vhost-user.c b/net/vhost-user.c
index 0ebd7df..5071602 100644
--- a/net/vhost-user.c
+++ b/net/vhost-user.c
@@ -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;
}
OpenPOWER on IntegriCloud