All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: semantics of VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP
       [not found] <CH0PR02MB7898402DC183E37BF74FF8868B3E9@CH0PR02MB7898.namprd02.prod.outlook.com>
@ 2021-06-01 14:14 ` Alex Williamson
  2021-06-01 15:07   ` Thanos Makatos
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2021-06-01 14:14 UTC (permalink / raw)
  To: Thanos Makatos; +Cc: vfio-users, John Levon, Swapnil Ingle, linux-kernel, kvm

On Tue, 1 Jun 2021 13:48:22 +0000
Thanos Makatos <thanos.makatos@nutanix.com> wrote:

> (sending here as I can't find a relevant list in
> http://vger.kernel.org/vger-lists.html)

$ ./scripts/get_maintainer.pl include/uapi/linux/vfio.h 
Alex Williamson <alex.williamson@redhat.com> (maintainer:VFIO DRIVER)
Cornelia Huck <cohuck@redhat.com> (reviewer:VFIO DRIVER)
kvm@vger.kernel.org (open list:VFIO DRIVER)
linux-kernel@vger.kernel.org (open list)

> I'm trying to understand the semantics of
> VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP. My (very rough) understanding
> so far is that once a page gets pinned then it's considered dirty and
> if the page is still pinned then it remains dirty even after we're
> done serving VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP. Is my
> understanding correct?

This is the current type1 implementation, but the semantics only
require that a page is reported dirty if it's actually been written.
Without support for tracking DMA writes, we assume that any page
accessible to the device is constantly dirty.  This will be refined
over time as software and hardware support improves, but we currently
error on the side of assuming all pinned pages are always dirty.
Thanks,

Alex


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: semantics of VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP
  2021-06-01 14:14 ` semantics of VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP Alex Williamson
@ 2021-06-01 15:07   ` Thanos Makatos
  0 siblings, 0 replies; 2+ messages in thread
From: Thanos Makatos @ 2021-06-01 15:07 UTC (permalink / raw)
  To: Alex Williamson; +Cc: vfio-users, John Levon, Swapnil Ingle, linux-kernel, kvm



> -----Original Message-----
> From: Alex Williamson <alex.williamson@redhat.com>
> Sent: 01 June 2021 15:14
> To: Thanos Makatos <thanos.makatos@nutanix.com>
> Cc: vfio-users@redhat.com; John Levon <john.levon@nutanix.com>; Swapnil
> Ingle <swapnil.ingle@nutanix.com>; linux-kernel@vger.kernel.org;
> kvm@vger.kernel.org
> Subject: Re: semantics of VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP
> 
> On Tue, 1 Jun 2021 13:48:22 +0000
> Thanos Makatos <thanos.makatos@nutanix.com> wrote:
> 
> > (sending here as I can't find a relevant list in
> > https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_vg
> > er-
> 2Dlists.html&d=DwICAg&c=s883GpUCOChKOHiocYtGcg&r=XTpYsh5Ps2zJvtw
> 6og
> >
> tti46atk736SI4vgsJiUKIyDE&m=E6G0G_Z_M2cIQvruwQk6NRrha3NkW8gdO11
> pPUm8vg
> > k&s=-7KcTuEYFphAcU1aya0t_Jh4aP9jVPq2N2YxVu9Lu84&e= )
> 
> $ ./scripts/get_maintainer.pl include/uapi/linux/vfio.h Alex Williamson
> <alex.williamson@redhat.com> (maintainer:VFIO DRIVER) Cornelia Huck
> <cohuck@redhat.com> (reviewer:VFIO DRIVER) kvm@vger.kernel.org (open
> list:VFIO DRIVER) linux-kernel@vger.kernel.org (open list)
> 
> > I'm trying to understand the semantics of
> > VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP. My (very rough)
> understanding
> > so far is that once a page gets pinned then it's considered dirty and
> > if the page is still pinned then it remains dirty even after we're
> > done serving VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP. Is my
> > understanding correct?
> 
> This is the current type1 implementation, but the semantics only require that
> a page is reported dirty if it's actually been written.
> Without support for tracking DMA writes, we assume that any page
> accessible to the device is constantly dirty.  This will be refined over time as
> software and hardware support improves, but we currently error on the side
> of assuming all pinned pages are always dirty.
> Thanks,	

Makes sense, thanks.

> 
> Alex


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-01 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CH0PR02MB7898402DC183E37BF74FF8868B3E9@CH0PR02MB7898.namprd02.prod.outlook.com>
2021-06-01 14:14 ` semantics of VFIO_IOMMU_DIRTY_PAGES_FLAG_GET_BITMAP Alex Williamson
2021-06-01 15:07   ` Thanos Makatos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.