diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-07-19 11:47:06 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-07-19 11:47:07 +0100 |
commit | ad31cd4c6945d7e0f0546d92d29dcd12325b4e4a (patch) | |
tree | 72a1e32a2910d60ba0604185b9ea4d2057eee9c4 /include | |
parent | 0c1b58f25025cc09463aae235162b19ff45c37b7 (diff) | |
parent | 3ff2f67a7c24183fcbcfe1332e5223ac6f96438c (diff) | |
download | qemu-ad31cd4c6945d7e0f0546d92d29dcd12325b4e4a.tar.gz qemu-ad31cd4c6945d7e0f0546d92d29dcd12325b4e4a.tar.bz2 qemu-ad31cd4c6945d7e0f0546d92d29dcd12325b4e4a.zip |
Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging
# gpg: Signature made Mon 18 Jul 2016 23:53:15 BST
# gpg: using RSA key 0x7DEF8106AAFC390E
# gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>"
# Primary key fingerprint: FAEB 9711 A12C F475 812F 18F2 88A9 064D 1835 61EB
# Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76 CBD0 7DEF 8106 AAFC 390E
* remotes/jnsnow/tags/ide-pull-request:
block: ignore flush requests when storage is clean
tests: in IDE and AHCI tests perform DMA write before flushing
ide: set retry_unit for PIO and FLUSH requests
ide: refactor retry_unit set and clear into separate function
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 805414619d..a6b13adb45 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -439,6 +439,11 @@ struct BlockDriverState { int copy_on_read; /* if nonzero, copy read backing sectors into image. note this is a reference count */ + CoQueue flush_queue; /* Serializing flush queue */ + unsigned int write_gen; /* Current data generation */ + unsigned int flush_started_gen; /* Generation for which flush has started */ + unsigned int flushed_gen; /* Flushed write generation */ + BlockDriver *drv; /* NULL means no media */ void *opaque; |