Re: [Qemu-devel] [PATCH v4] hw/vfio/common: Refactor container initialization

2019-01-23 Thread Alex Williamson
On Wed, 23 Jan 2019 16:40:35 +0100 Eric Auger wrote: > 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

[Qemu-devel] [PATCH v4] hw/vfio/common: Refactor container initialization

2019-01-23 Thread Eric Auger
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: Eric Auger --- v3 -> v4: - Take into account A