Received: from eggs.gnu.org ([2001:4830:134:3::10]:51597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Su4-0002XN-A8 for qemu-devel@nongnu.org; Fri, 27 Jun 2014 05:57:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Stx-0004SO-9R for qemu-devel@nongnu.org; Fri, 27 Jun 2014 05:57:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Stx-0004RM-0B for qemu-devel@nongnu.org; Fri, 27 Jun 2014 05:57:01 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5R9v0Nn019355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 27 Jun 2014 05:57:00 -0400 Date: Fri, 27 Jun 2014 11:56:59 +0200 From: Stefan Hajnoczi Message-ID: <20140627095659.GH12061@stefanha-thinkpad.muc.redhat.com> References: <1401970536-18019-1-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zq44+AAfm4giZpo5" Content-Disposition: inline In-Reply-To: <1401970536-18019-1-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/3] virtio-blk: Suppress error action on r/w beyond end List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, qemu-devel@nongnu.org, uobergfe@redhat.com --zq44+AAfm4giZpo5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 05, 2014 at 02:15:33PM +0200, Markus Armbruster wrote: > When a device model's I/O operation fails, we execute the error > action. This lets layers above QEMU implement thin provisioning, or > attempt to correct errors before they reach the guest. But when the > I/O operation fails because its invalid, reporting the error to the > guest is the only sensible action. >=20 > This short series does exactly that for virtio-blk. I intend to do > the same for IDE and SCSI. >=20 > Markus Armbruster (3): > virtio-blk: Factor common checks out of virtio_blk_handle_read/write() > virtio-blk: Bypass error action and I/O accounting on invalid r/w > virtio-blk: Treat read/write beyond end as invalid >=20 > hw/block/virtio-blk.c | 45 +++++++++++++++++++++++++++++---------------- > 1 file changed, 29 insertions(+), 16 deletions(-) >=20 > --=20 > 1.9.3 >=20 Reviewed-by: Stefan Hajnoczi --zq44+AAfm4giZpo5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTrT/qAAoJEJykq7OBq3PIxCMH/39JV4TgpTEjnyG1m8vKicju lWsoiJ8WlTddy1jgT9sbkNU25XyJ0V1ck2DQ6FJuNUBkmDNZkblnaQ7qa8FratMY m+8EE8bQclVgdhFkkzMlXZo3ZdTGCBcBRvPtwaet/KVIF5uO6IUpcpgTBfMgRalC 37ihMYtrHuByx9djzmEPpi/70KNCNbHPEJZ8qeOmZr+x2hdJQHhSmmpoJX3faaRM AC5eCSPLxgBnRNBbj09wrvHTnqg625Y8Qn3YyNeTesmzmL1ZK+6hKFt5dO7rlL1N dXdod2x826ENJ4u15dQVacPnopW1HwsQr9cu5NymHgmraEoqCac6bsFDvbsZWwo= =Ydh5 -----END PGP SIGNATURE----- --zq44+AAfm4giZpo5--