]> xenbits.xensource.com Git - qemu-xen.git/commit
vfio/iommufd: Return errno in iommufd_cdev_attach_ioas_hwpt()
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 19 Jul 2024 12:04:52 +0000 (13:04 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commitb07dcb7d4f116b157de5aaacfa9d58a496a9ed1d
treecaa902be4fe26cec05340de069960b1175226cf4
parent2d1bf2589736b3714f3940d360404732ac13019c
vfio/iommufd: Return errno in iommufd_cdev_attach_ioas_hwpt()

In preparation to implement auto domains have the attach function
return the errno it got during domain attach instead of a bool.

-EINVAL is tracked to track domain incompatibilities, and decide whether
to create a new IOMMU domain.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
hw/vfio/iommufd.c