hw/vfio/common: Refactor container initialization
We introduce the vfio_init_container_type() helper. It computes the highest usable iommu type and then set the container and the iommu type. Its usage in vfio_connect_container() makes the code ready for addition of new iommu types. Signed-off-by: NEric Auger <eric.auger@redhat.com> Reviewed-by: NGreg Kurz <groug@kaod.org> Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
Showing
想要评论请 注册 或 登录