Re: [PATCH] vfio/type1: Add proper error unwind for vfio_iommu_replay()

2020-08-10 Thread Cornelia Huck
On Fri, 07 Aug 2020 14:14:48 -0600 Alex Williamson wrote: > The vfio_iommu_replay() function does not currently unwind on error, > yet it does pin pages, perform IOMMU mapping, and modify the vfio_dma > structure to indicate IOMMU mapping. The IOMMU mappings are torn down > when the domain is

[PATCH] vfio/type1: Add proper error unwind for vfio_iommu_replay()

2020-08-07 Thread Alex Williamson
The vfio_iommu_replay() function does not currently unwind on error, yet it does pin pages, perform IOMMU mapping, and modify the vfio_dma structure to indicate IOMMU mapping. The IOMMU mappings are torn down when the domain is destroyed, but the other actions go on to cause trouble later. For