qemu/hw/ide
Christoph Hellwig a597e79ce1 block: explicit I/O accounting
Decouple the I/O accounting from bdrv_aio_readv/writev/flush and
make the hardware models call directly into the accounting helpers.

This means:
 - we do not count internal requests from image formats in addition
   to guest originating I/O
 - we do not double count I/O ops if the device model handles it
   chunk wise
 - we only account I/O once it actuall is done
 - can extent I/O accounting to synchronous or coroutine I/O easily
 - implement I/O latency tracking easily (see the next patch)

I've conveted the existing device model callers to the new model,
device models that are using synchronous I/O and weren't accounted
before haven't been updated yet.  Also scsi hasn't been converted
to the end-to-end accounting as I want to defer that after the pending
scsi layer overhaul.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-08-25 18:18:42 +02:00
..
ahci.c block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
ahci.h block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
atapi.c block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
cmd646.c pci: rename pci_register_bar_region() to pci_register_bar() 2011-08-08 10:22:30 -05:00
core.c block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
ich.c pci: rename pci_register_bar_region() to pci_register_bar() 2011-08-08 10:22:30 -05:00
internal.h block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
isa.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
macio.c block: explicit I/O accounting 2011-08-25 18:18:42 +02:00
microdrive.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
mmio.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
pci.c ide: convert to memory API 2011-08-08 10:15:54 -05:00
pci.h ide: convert to memory API 2011-08-08 10:15:54 -05:00
piix.c pci: rename pci_register_bar_region() to pci_register_bar() 2011-08-08 10:22:30 -05:00
qdev.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
via.c pci: rename pci_register_bar_region() to pci_register_bar() 2011-08-08 10:22:30 -05:00