diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-03-23 11:39:53 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-03-23 11:39:53 +0000 |
commit | e6ebebc204bfb467fba008d6ead5a228508b65ac (patch) | |
tree | 30e3aeae59145b4dd559bee35255b4d9ec1289be /include | |
parent | 2077cabcac3e052af320cd93522467c2c5861c76 (diff) | |
parent | 600ac6a0ef5c06418446ef2f37407bddcc51b21c (diff) | |
download | qemu-e6ebebc204bfb467fba008d6ead5a228508b65ac.zip qemu-e6ebebc204bfb467fba008d6ead5a228508b65ac.tar.gz qemu-e6ebebc204bfb467fba008d6ead5a228508b65ac.tar.bz2 |
Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging
# gpg: Signature made Wed 22 Mar 2017 17:28:56 GMT
# gpg: using RSA key 0xBDBE7B27C0DE3057
# gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>"
# gpg: aka "Jeffrey Cody <jeff@codyprime.org>"
# gpg: aka "Jeffrey Cody <codyprime@gmail.com>"
# Primary key fingerprint: 9957 4B4D 3474 90E7 9D98 D624 BDBE 7B27 C0DE 3057
* remotes/cody/tags/block-pull-request:
blockjob: add devops to blockjob backends
block-backend: add drained_begin / drained_end ops
blockjob: add block_job_start_shim
blockjob: avoid recursive AioContext locking
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/block-backend.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 096c17f..7462228 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -58,6 +58,14 @@ typedef struct BlockDevOps { * Runs when the size changed (e.g. monitor command block_resize) */ void (*resize_cb)(void *opaque); + /* + * Runs when the backend receives a drain request. + */ + void (*drained_begin)(void *opaque); + /* + * Runs when the backend's last drain request ends. + */ + void (*drained_end)(void *opaque); } BlockDevOps; /* This struct is embedded in (the private) BlockBackend struct and contains |