From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ytk-0007R6-0s for qemu-devel@nongnu.org; Wed, 09 Jul 2014 16:55:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4yte-0006j1-9W for qemu-devel@nongnu.org; Wed, 09 Jul 2014 16:55:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4yte-0006is-05 for qemu-devel@nongnu.org; Wed, 09 Jul 2014 16:55:22 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s69KtLAU010887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 9 Jul 2014 16:55:21 -0400 Message-ID: <53BDAC38.6030505@redhat.com> Date: Wed, 09 Jul 2014 14:55:20 -0600 From: Eric Blake MIME-Version: 1.0 References: <1404926602-11494-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1404926602-11494-1-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D0xFJ4FqdWQnQHx8JNTUMCJSNiXGGfkmc" Subject: Re: [Qemu-devel] [PATCH for-2.1] dma-helpers: Fix too long qiov List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-devel@nongnu.org Cc: stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --D0xFJ4FqdWQnQHx8JNTUMCJSNiXGGfkmc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/09/2014 11:23 AM, Kevin Wolf wrote: > If the size of the scatter/gather list isn't a multiple of 512, the > number of sectors for the block layer request is rounded down, resultin= g > in a qiov that doesn't match the request length. Truncate the qiov to t= he > new length of the request. >=20 > This fixes the IDE qtest case /x86_64/ide/bmdma/short_prdt. >=20 > Signed-off-by: Kevin Wolf > --- > dma-helpers.c | 4 ++++ > include/qemu-common.h | 1 + > util/iov.c | 13 +++++++++++++ > 3 files changed, 18 insertions(+) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --D0xFJ4FqdWQnQHx8JNTUMCJSNiXGGfkmc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTvaw4AAoJEKeha0olJ0Nq9dMH/2K/Si7oFk67ye1rl8bMXWRs gElusJiw+7Grj60z3aqCWFxPZXzXi/63JWHMjozywNr4XlKioZJ/+LKh+sk24mVz QI9yGPOJMx2j+4bkUkeFrvU6ohTIMsCkt+vcNj25UCIx0Y6hwZ05CNk0xTnoBIFp q0pKQdhr3R6C7B4plD4bUHGLfoCQRDuZbZOdsu2vJTwYFdSJvUHw+p30hUv/U4ge Af9aiYXHBFoVx68OSkOVRJdkv+mbHP4vyQsnmYjW5FdlIFCU9v1PtM9qbmC0/Dhf aw6tFYVdg7LI+Q85uDQ8uAzZmdmet1w4pv8l6JcjRlwFtDelxKE1acYCIBwtFHM= =s/Xk -----END PGP SIGNATURE----- --D0xFJ4FqdWQnQHx8JNTUMCJSNiXGGfkmc--