From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsohu-00076X-GW for qemu-devel@nongnu.org; Fri, 06 Jun 2014 03:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsohl-0005Mi-C1 for qemu-devel@nongnu.org; Fri, 06 Jun 2014 03:36:58 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:50652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsohl-0005MX-6c for qemu-devel@nongnu.org; Fri, 06 Jun 2014 03:36:49 -0400 Received: by mail-qg0-f41.google.com with SMTP id j5so3665213qga.28 for ; Fri, 06 Jun 2014 00:36:48 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53916F8B.9050809@redhat.com> Date: Fri, 06 Jun 2014 09:36:43 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1401970536-18019-1-git-send-email-armbru@redhat.com> In-Reply-To: <1401970536-18019-1-git-send-email-armbru@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 , qemu-devel@nongnu.org Cc: kwolf@redhat.com, uobergfe@redhat.com, stefanha@redhat.com Il 05/06/2014 14:15, Markus Armbruster ha scritto: > 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. > > This short series does exactly that for virtio-blk. I intend to do > the same for IDE and SCSI. Actually SCSI already does it (see check_lba_range in hw/scsi/scsi-disk.c). Thanks for thinking about it though! Paolo