Re: [PATCH kernel] vfio/spapr_tce: Skip unsetting already unset table

2019-02-19 Thread Alex Williamson
On Wed, 13 Feb 2019 11:18:21 +1100 Alexey Kardashevskiy wrote: > On 13/02/2019 07:52, Alex Williamson wrote: > > On Mon, 11 Feb 2019 18:49:17 +1100 > > Alexey Kardashevskiy wrote: > > > >> VFIO TCE IOMMU v2 owns IOMMU tables so when detach a IOMMU group from > >> a container, we need to unset

Re: [PATCH kernel] vfio/spapr_tce: Skip unsetting already unset table

2019-02-12 Thread Alexey Kardashevskiy
On 13/02/2019 07:52, Alex Williamson wrote: > On Mon, 11 Feb 2019 18:49:17 +1100 > Alexey Kardashevskiy wrote: > >> VFIO TCE IOMMU v2 owns IOMMU tables so when detach a IOMMU group from >> a container, we need to unset those from a group so we call unset_window() >> so do we unconditionally. W

Re: [PATCH kernel] vfio/spapr_tce: Skip unsetting already unset table

2019-02-12 Thread Alex Williamson
On Mon, 11 Feb 2019 18:49:17 +1100 Alexey Kardashevskiy wrote: > VFIO TCE IOMMU v2 owns IOMMU tables so when detach a IOMMU group from > a container, we need to unset those from a group so we call unset_window() > so do we unconditionally. We also unset tables when removing a DMA window Patch lo

Re: [PATCH kernel] vfio/spapr_tce: Skip unsetting already unset table

2019-02-11 Thread David Gibson
On Mon, Feb 11, 2019 at 06:49:17PM +1100, Alexey Kardashevskiy wrote: > VFIO TCE IOMMU v2 owns IOMMU tables so when detach a IOMMU group from > a container, we need to unset those from a group so we call unset_window() > so do we unconditionally. We also unset tables when removing a DMA window > vi

[PATCH kernel] vfio/spapr_tce: Skip unsetting already unset table

2019-02-10 Thread Alexey Kardashevskiy
VFIO TCE IOMMU v2 owns IOMMU tables so when detach a IOMMU group from a container, we need to unset those from a group so we call unset_window() so do we unconditionally. We also unset tables when removing a DMA window via the VFIO_IOMMU_SPAPR_TCE_REMOVE ioctl. The window removal checks if the tab