Received: from eggs.gnu.org ([2001:4830:134:3::10]:60024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmVu-0002b9-Ac for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:43:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfmVp-00034e-WC for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:43:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfmVp-00034O-LK for qemu-devel@nongnu.org; Wed, 08 Apr 2015 05:43:09 -0400 Date: Wed, 8 Apr 2015 10:42:59 +0100 From: Stefan Hajnoczi Message-ID: <20150408094259.GE28835@stefanha-thinkpad.redhat.com> References: <1427997044-392-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Epv4kl9IRBfg3rk" Content-Disposition: inline In-Reply-To: <1427997044-392-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 for-2.3] virtio-blk: correctly dirty guest memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, famz@redhat.com, zhang.zhanghailiang@huawei.com, mst@redhat.com, qemu-devel@nongnu.org --4Epv4kl9IRBfg3rk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 02, 2015 at 07:50:44PM +0200, Paolo Bonzini wrote: > After qemu_iovec_destroy, the QEMUIOVector's size is zeroed and > the zero size ultimately is used to compute virtqueue_push's len > argument. Therefore, reads from virtio-blk devices did not > migrate their results correctly. (Writes were okay). >=20 > Save the size in virtio_blk_handle_request, and use it when the request > is completed. >=20 > Based on a patch by Wen Congyang. >=20 > Signed-off-by: Wen Congyang > Signed-off-by: Paolo Bonzini > --- > hw/block/dataplane/virtio-blk.c | 3 +-- > hw/block/virtio-blk.c | 13 ++++++++++++- Applied to my block tree for QEMU 2.3-rc3: https://github.com/stefanha/qemu/commits/block I can still drop it if there is an objection, so just let me know. Several related points have been mentioned but they are orthogonal and less urgent. Please address them in separate QEMU 2.4 patches. Stefan --4Epv4kl9IRBfg3rk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVJPgjAAoJEJykq7OBq3PIvAEH/3TbAvG9V6coGLtdT7Btvz0s CQNIytEFaSZjy29WFwDyy6lAsYHRQRkSZxARi7iLOftVDEOxUk+3U6X7iuorMgiD iY4vpxSXMSuhxomn+vFVljDJjUfvvftrQtHbcxKlKm5x2UjCh/KY/xoFgTIjJefK iyCAFvJM3VZdNsrvU2dymOg9GTeXc/MqPnluu4b3wQwYwCQLD7I1cmCy5s5eTcCc P8Ood7CeroUa2wICCGQIQbEMLRuBneTbYu0TJwjNbRfDO4Bh4izkZxwGHYmlUidW X0mj8UlZs9N91EqVjcbUoXaOgLTb03uZ0+h6HDvk2DYtaHD5N4sEBzpfY30ZlXs= =/UOE -----END PGP SIGNATURE----- --4Epv4kl9IRBfg3rk--