[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-stable] address@hidden: [PATCH 2/2] vhost: don't send RESET_OWNER
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-stable] address@hidden: [PATCH 2/2] vhost: don't send RESET_OWNER at stop] |
Date: |
Wed, 2 Dec 2015 15:54:47 +0200 |
Cc address@hidden as this fixes some clients.
----- Forwarded message from Yuanhan Liu <address@hidden> -----
Date: Fri, 13 Nov 2015 15:24:10 +0800
From: Yuanhan Liu <address@hidden>
To: address@hidden
Cc: address@hidden, Yuanhan Liu <address@hidden>
Subject: [PATCH 2/2] vhost: don't send RESET_OWNER at stop
Message-Id: <address@hidden>
In-Reply-To: <address@hidden>
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 <address@hidden>
---
hw/net/vhost_net.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index d91b7b1..14337a4 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -292,12 +292,6 @@ static void vhost_net_stop_one(struct vhost_net *net,
int r = vhost_ops->vhost_net_set_backend(&net->dev, &file);
assert(r >= 0);
}
- } else if (net->nc->info->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER) {
- for (file.index = 0; file.index < net->dev.nvqs; ++file.index) {
- const VhostOps *vhost_ops = net->dev.vhost_ops;
- int r = vhost_ops->vhost_reset_device(&net->dev);
- assert(r >= 0);
- }
}
if (net->nc->info->poll) {
net->nc->info->poll(net->nc, true);
--
1.9.3
----- End forwarded message -----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-stable] address@hidden: [PATCH 2/2] vhost: don't send RESET_OWNER at stop],
Michael S. Tsirkin <=