qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5]: QMP: Proper thin provisioning support
@ 2011-08-03 15:19 Luiz Capitulino
  2011-08-03 15:19 ` [Qemu-devel] [PATCH 1/5] block: Introduce get_iostatus() device model operation Luiz Capitulino
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Luiz Capitulino @ 2011-08-03 15:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, aliguori, armbru

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(-)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-08-04 13:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-03 15:19 [Qemu-devel] [PATCH v2 0/5]: QMP: Proper thin provisioning support Luiz Capitulino
2011-08-03 15:19 ` [Qemu-devel] [PATCH 1/5] block: Introduce get_iostatus() device model operation Luiz Capitulino
2011-08-03 15:19 ` [Qemu-devel] [PATCH 2/5] QMP/HMP: Add the 'io-status' field to query-block and info block Luiz Capitulino
2011-08-03 15:19 ` [Qemu-devel] [PATCH 3/5] virtio-blk: Support I/O status Luiz Capitulino
2011-08-03 15:19 ` [Qemu-devel] [PATCH 4/5] ide: " Luiz Capitulino
2011-08-03 15:19 ` [Qemu-devel] [PATCH 5/5] scsi-disk: " Luiz Capitulino
2011-08-03 15:39 ` [Qemu-devel] [PATCH v2 0/5]: QMP: Proper thin provisioning support Kevin Wolf
2011-08-03 18:08   ` Luiz Capitulino
2011-08-04  8:10     ` Kevin Wolf
2011-08-04  9:19       ` Markus Armbruster
2011-08-04 13:42         ` Luiz Capitulino
2011-08-03 16:31 ` Christoph Hellwig
2011-08-03 18:11   ` Luiz Capitulino
2011-08-03 18:26     ` Christoph Hellwig
2011-08-03 18:36       ` Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).