pci: vfio: Cleanup error handling

After the refactoring to split the common VFIO code out for vfio-user
there were some inconsistencies in the error handling. Correct this so
that the error is independent of the transport (hardware vs user) VFIO
and migrate to anyhow/thiserror in the process. Some unused errors from
earlier refactoring have also been removed.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-08-02 14:20:09 +00:00
committed by Sebastien Boeuf
parent 51ceae9131
commit cdfc177347
3 changed files with 65 additions and 87 deletions
Generated
+1
View File
@@ -656,6 +656,7 @@ dependencies = [
"hypervisor",
"libc",
"log",
"thiserror",
"versionize",
"versionize_derive",
"vfio-bindings",