From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QodFB-0003Cv-3g for qemu-devel@nongnu.org; Wed, 03 Aug 2011 11:20:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QodF5-00072e-Ck for qemu-devel@nongnu.org; Wed, 03 Aug 2011 11:20:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QodF5-0006uy-50 for qemu-devel@nongnu.org; Wed, 03 Aug 2011 11:20:19 -0400 From: Luiz Capitulino Date: Wed, 3 Aug 2011 12:19:20 -0300 Message-Id: <1312384765-721-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/5]: QMP: Proper thin provisioning support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, armbru@redhat.com Roughly speaking, thin provisioning is a feature where the VM is started with a small disk and space is allocated on demand. It's already possible for QMP clients to implement this feature by using the BLOCK_IO_ERROR event. However, the event can be missed. When this happens QMP clients need a way to query if any block device has hit a no space condition. This is what this series is about: it extends the query-block command to contain the disk's I/O status. Please, note that this series depends on the following two other series: 1. [PATCH 00/55] Block layer cleanup & fixes (by Markus) 2. [PATCH 0/7]: Introduce the QemuState type (by me) changelog --------- v2 - Split the series in two (first part already sent) - Rebased on top of Markus's block layer cleanup series and using BlockDevOps - Only make the 'io-status' key available if the VM is stopped block.c | 38 ++++++++++++++++++++++++++++++++++++++ block.h | 11 +++++++++++ hw/ide/core.c | 16 ++++++++++++++++ hw/ide/internal.h | 2 ++ hw/scsi-disk.c | 18 ++++++++++++++++++ hw/virtio-blk.c | 14 ++++++++++++++ qemu-tool.c | 6 ++++++ qmp-commands.hx | 3 +++ 8 files changed, 108 insertions(+), 0 deletions(-)