1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2023 Advanced Micro Devices, Inc. */
7 struct pds_vfio_bmp_info {
10 struct pds_lm_sg_elem *sgl;
15 struct pds_vfio_dirty {
16 struct pds_vfio_bmp_info host_seq;
17 struct pds_vfio_bmp_info host_ack;
24 struct pds_vfio_pci_device;
26 bool pds_vfio_dirty_is_enabled(struct pds_vfio_pci_device *pds_vfio);
27 void pds_vfio_dirty_set_enabled(struct pds_vfio_pci_device *pds_vfio);
28 void pds_vfio_dirty_set_disabled(struct pds_vfio_pci_device *pds_vfio);
29 void pds_vfio_dirty_disable(struct pds_vfio_pci_device *pds_vfio,
32 int pds_vfio_dma_logging_report(struct vfio_device *vdev, unsigned long iova,
34 struct iova_bitmap *dirty);
35 int pds_vfio_dma_logging_start(struct vfio_device *vdev,
36 struct rb_root_cached *ranges, u32 nnodes,
38 int pds_vfio_dma_logging_stop(struct vfio_device *vdev);
39 #endif /* _DIRTY_H_ */