Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-15 Thread Alex Williamson
On Fri, 15 May 2020 21:00:32 +0530 Kirti Wankhede wrote: > On 5/15/2020 7:01 PM, Alex Williamson wrote: > > On Fri, 15 May 2020 12:17:03 +0530 > > Kirti Wankhede wrote: > > > >> On 5/15/2020 11:17 AM, Alex Williamson wrote: > >>> On Fri, 15 May 2020 09:46:43 +0530 > >>> Kirti Wankhede

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-15 Thread Kirti Wankhede
On 5/15/2020 7:01 PM, Alex Williamson wrote: On Fri, 15 May 2020 12:17:03 +0530 Kirti Wankhede wrote: On 5/15/2020 11:17 AM, Alex Williamson wrote: On Fri, 15 May 2020 09:46:43 +0530 Kirti Wankhede wrote: On 5/15/2020 8:57 AM, Alex Williamson wrote: On Fri, 15 May 2020 02:07:45

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-15 Thread Alex Williamson
On Fri, 15 May 2020 12:17:03 +0530 Kirti Wankhede wrote: > On 5/15/2020 11:17 AM, Alex Williamson wrote: > > On Fri, 15 May 2020 09:46:43 +0530 > > Kirti Wankhede wrote: > > > >> On 5/15/2020 8:57 AM, Alex Williamson wrote: > >>> On Fri, 15 May 2020 02:07:45 +0530 > >>> Kirti Wankhede

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-15 Thread Kirti Wankhede
On 5/15/2020 11:17 AM, Alex Williamson wrote: On Fri, 15 May 2020 09:46:43 +0530 Kirti Wankhede wrote: On 5/15/2020 8:57 AM, Alex Williamson wrote: On Fri, 15 May 2020 02:07:45 +0530 Kirti Wankhede wrote: DMA mapped pages, including those pinned by mdev vendor drivers, might get

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-14 Thread Alex Williamson
On Fri, 15 May 2020 09:46:43 +0530 Kirti Wankhede wrote: > On 5/15/2020 8:57 AM, Alex Williamson wrote: > > On Fri, 15 May 2020 02:07:45 +0530 > > Kirti Wankhede wrote: > > > >> DMA mapped pages, including those pinned by mdev vendor drivers, might > >> get unpinned and unmapped while

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-14 Thread Kirti Wankhede
On 5/15/2020 8:57 AM, Alex Williamson wrote: On Fri, 15 May 2020 02:07:45 +0530 Kirti Wankhede wrote: DMA mapped pages, including those pinned by mdev vendor drivers, might get unpinned and unmapped while migration is active and device is still running. For example, in pre-copy phase while

Re: [PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-14 Thread Alex Williamson
On Fri, 15 May 2020 02:07:45 +0530 Kirti Wankhede wrote: > DMA mapped pages, including those pinned by mdev vendor drivers, might > get unpinned and unmapped while migration is active and device is still > running. For example, in pre-copy phase while guest driver could access > those pages,

[PATCH Kernel v20 6/8] vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmap

2020-05-14 Thread Kirti Wankhede
DMA mapped pages, including those pinned by mdev vendor drivers, might get unpinned and unmapped while migration is active and device is still running. For example, in pre-copy phase while guest driver could access those pages, host device or vendor driver can dirty these mapped pages. Such pages