From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boYkO-0001RD-KZ for qemu-devel@nongnu.org; Mon, 26 Sep 2016 12:27:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boYkK-0003wP-98 for qemu-devel@nongnu.org; Mon, 26 Sep 2016 12:27:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boYkK-0003wF-2j for qemu-devel@nongnu.org; Mon, 26 Sep 2016 12:27:12 -0400 Date: Mon, 26 Sep 2016 17:27:09 +0100 From: Stefan Hajnoczi Message-ID: <20160926162709.GE25705@stefanha-x1.localdomain> References: <147487882735.6679.8076815106195077844.stgit@bahia> <147487888056.6679.17541794925955609666.stgit@bahia> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EgVrEAR5UttbsTXg" Content-Disposition: inline In-Reply-To: <147487888056.6679.17541794925955609666.stgit@bahia> Subject: Re: [Qemu-devel] [PATCH v3 6/9] virtio-net: handle virtio_net_receive() errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: qemu-devel@nongnu.org, Kevin Wolf , "Michael S. Tsirkin" , Jason Wang , Max Reitz , "Aneesh Kumar K.V" , Cornelia Huck , Paolo Bonzini --EgVrEAR5UttbsTXg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 26, 2016 at 10:34:40AM +0200, Greg Kurz wrote: > All these errors are caused by a buggy guest: let's switch the device to > the broken state instead of terminating QEMU. Also we detach the element > from the virtqueue and free it. >=20 > Signed-off-by: Greg Kurz > Reviewed-by: Cornelia Huck > --- > v3: - detach and free element > - updated changelog > --- > hw/net/virtio-net.c | 27 +++++++++++++++------------ > 1 file changed, 15 insertions(+), 12 deletions(-) Reviewed-by: Stefan Hajnoczi --EgVrEAR5UttbsTXg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJX6UxdAAoJEJykq7OBq3PIcaUH/0FGs4/Sm4jNNgP8rFjGEtNq 8uAeZ0LAkbz9lb3PJszud6Vz0cvH9eYvURiLfIIISyhnPUFkKEjzv5TUjUwkPrhw 0Q6zSMQ4NsPhaNDJ0ymG4LjIZIcJui/EIFkVEN7Van511qJkNC4S55anEQVgNBvB cmcEaMYQw/k851KuRMfcaFPtJHXSyqDGG7u0X5S329VUs2WaurSyWQkmUXXhYguT 4+tCUwqg54DwhVK0uD3xfPNldJXkQcL9Zl0JnPQGa56pAasogILWbVHnUm+7kDQa x6H9yOvPZn0D3g6IsTB1vXwfTIjuFvnS/Zjb0TvpNIcbsLHO/7oDaWnguNscpfA= =s+/s -----END PGP SIGNATURE----- --EgVrEAR5UttbsTXg--