block: convert crypto driver to bdrv_co_preadv|pwritev
commita73466fbad6d48ba356940474cd72da602373304
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 27 Sep 2017 12:53:38 +0000 (27 13:53 +0100)
committerMax Reitz <mreitz@redhat.com>
Fri, 6 Oct 2017 14:30:47 +0000 (6 16:30 +0200)
tree4ac1b3a111b8aa782aeef0609049ae7e4af94e47
parent31376555c7b447afb1bf9084eacbb8f566ff6b9d
block: convert crypto driver to bdrv_co_preadv|pwritev

Make the crypto driver implement the bdrv_co_preadv|pwritev
callbacks, and also use bdrv_co_preadv|pwritev for I/O
with the protocol driver beneath. This replaces sector based
I/O with byte based I/O, and allows us to stop assuming the
physical sector size matches the encryption sector size.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170927125340.12360-5-berrange@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/crypto.c