virtio-devices: vhost_user: blk: Cleanup device creation

Prepare the device creation so that it can be factorized in a follow up
commit.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-05-19 22:33:04 +02:00
parent c549bbd72a
commit 9a7199a116
3 changed files with 60 additions and 49 deletions
+4
View File
@@ -84,6 +84,10 @@ pub enum Error {
VhostUserSetSlaveRequestFd(vhost::Error),
/// Add memory region failed.
VhostUserAddMemReg(VhostError),
/// Failed getting the configuration.
VhostUserGetConfig(VhostError),
/// Failed setting the configuration.
VhostUserSetConfig(VhostError),
/// Invalid used address.
UsedAddress,
/// Invalid features provided from vhost-user backend