block_util: Add new traits for handling disk files asynchronously

Both DiskFile and AsyncIo traits are introduced to allow all kind of
files (RAW, QCOW, VHD) to be able to handle asynchronous access to the
underlying file.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-01-20 10:53:27 +01:00
committed by Rob Bradford
parent d578c408b7
commit 30033bdaea
4 changed files with 60 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -162,6 +162,7 @@ dependencies = [
"serde",
"serde_derive",
"serde_json",
"thiserror",
"virtio-bindings",
"vm-memory",
"vm-virtio",