vhost: don't send RESET_OWNER at stop
commit12b8cbac3c8243b3dd485aaebb82547aefa06adb
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 13 Nov 2015 07:24:10 +0000 (13 15:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 Nov 2015 10:02:54 +0000 (16 12:02 +0200)
tree605945fd9c05bc795f9ebcedc5313f09ac09b111
parent923e2d98ede7404882656aeb4364c3964a95db3d
vhost: don't send RESET_OWNER at stop

First of all, RESET_OWNER message is sent incorrectly, as it's sent
before GET_VRING_BASE. And the reset message would let the later call
get nothing correct.

And, sending SET_VRING_ENABLE at stop, which has already been done,
makes more sense than RESET_OWNER.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/vhost_net.c