From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Aw6-0003m7-9C for qemu-devel@nongnu.org; Thu, 29 Sep 2011 03:21:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9Aw4-0001DT-Hh for qemu-devel@nongnu.org; Thu, 29 Sep 2011 03:21:38 -0400 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:45501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9Aw3-0001CX-RS for qemu-devel@nongnu.org; Thu, 29 Sep 2011 03:21:36 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp06.in.ibm.com (8.14.4/8.13.1) with ESMTP id p8T7LWEQ019062 for ; Thu, 29 Sep 2011 12:51:32 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8T7LKO51986594 for ; Thu, 29 Sep 2011 12:51:23 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8THnfL8032445 for ; Thu, 29 Sep 2011 23:19:41 +0530 Received: from oc4654482034.ibm.com ([9.115.122.78]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8THneTb031322 for ; Thu, 29 Sep 2011 23:19:40 +0530 Message-ID: <4E841C51.6020103@vnet.linux.ibm.com> Date: Thu, 29 Sep 2011 15:20:49 +0800 From: Mark Wu MIME-Version: 1.0 References: <1317069835-28815-1-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1317069835-28815-1-git-send-email-lcapitulino@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/6]: block: Add I/O status support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 09/27/2011 04:43 AM, Luiz Capitulino wrote: > This series adds support to the block layer to keep track of devices' > I/O status. That information is also made available in QMP and HMP. > > The goal here is to allow management applications that miss the > BLOCK_IO_ERROR event to able to query the VM to determine if any device has > caused the VM to stop and which device caused it. > > Here's an HMP example: > > (qemu) info status > VM status: paused (io-error) > (qemu) info block > ide0-hd0: removable=0 io-status=ok file=disks/test2.img ro=0 drv=qcow2 encrypted=0 > ide0-hd1: removable=0 io-status=nospace file=/dev/vg_doriath/kvmtest ro=0 drv=qcow2 encrypted=0 > ide1-cd0: removable=1 locked=0 io-status=ok [not inserted] > floppy0: removable=1 locked=0 [not inserted] > sd0: removable=1 locked=0 [not inserted] > > The session above shows that the VM is stopped due to an I/O error. By using > the info block command it's possible to determine that the 'ide0-hd1' device > caused the error, which turns out to be due to no space. > > I test it with the options enospc and stop on virtio and scsi models. It works fine. Tested-by: Mark Wu