xemu/include/block
Paolo Bonzini 9e8f1835ea block: implement BDRV_O_UNMAP
It is better to present homogeneous hardware independent of the storage
technology that is chosen on the host, hence we make discard a host
parameter; the user can choose whether to pass it down to the image
format and protocol, or to ignore it.

Using DISCARD with filesystems can cause very severe fragmentation, so it
is left default-off for now.  This can change later when we implement the
"anchor" operation for efficient management of preallocated files.

There is still one choice to make: whether DISCARD has an effect on the
dirty bitmap or not.  I chose yes, though there is a disadvantage: if
the guest is buggy and issues discards for data that is in use, there
will be no way to migrate storage for that guest without downgrading
the machine type to an older one.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-02-22 21:29:42 +01:00
..
aes.h block: move include files to include/block/ 2012-12-19 08:31:31 +01:00
aio.h aio: convert aio_poll() to g_poll(3) 2013-02-21 16:17:31 -06:00
block_int.h vmdk: Allow selecting SCSI adapter in image creation 2013-02-01 14:58:28 +01:00
block.h block: implement BDRV_O_UNMAP 2013-02-22 21:29:42 +01:00
blockjob.h block: move include files to include/block/ 2012-12-19 08:31:31 +01:00
coroutine_int.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
coroutine.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
nbd.h block: move include files to include/block/ 2012-12-19 08:31:31 +01:00
thread-pool.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00