qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] vhost: restore avail index from vring used


From: Jens Freimann
Subject: Re: [Qemu-devel] [PATCH 2/2] vhost: restore avail index from vring used index on disconnection
Date: Fri, 17 Nov 2017 10:14:14 +0100
User-agent: NeoMutt/20170914 (1.9.0)

On Thu, Nov 16, 2017 at 06:48:35PM +0000, Maxime Coquelin wrote:
vhost_virtqueue_stop() gets avail index value from the backend,
except if the backend is not responding.

It happens when the backend crashes, and in this case, internal
state of the virtio queue is inconsistent, making packets
to corrupt the vring state.

With a Linux guest, it results in following error message on
backend reconnection:

[   22.444905] virtio_net virtio0: output.0:id 0 is not a head!
[   22.446746] net enp0s3: Unexpected TXQ (0) queue failure: -5
[   22.476360] net enp0s3: Unexpected TXQ (0) queue failure: -5

Fixes: 283e2c2adcb8 ("net: virtio-net discards TX data after link down")
Cc: address@hidden
Signed-off-by: Maxime Coquelin <address@hidden>
---
hw/virtio/vhost.c | 4 ++++
1 file changed, 4 insertions(+)


Reviewed-by: Jens Freimann <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]