History

vfio: Selective dirty page tracking if IOMMU backed device pins pages

Added a check such that only singleton IOMMU groups can pin pages. >From the point when vendor driver pins any pages, consider IOMMU group dirty page scope to be limited to pinned pages. To optimize to avoid walking list often, added flag pinned_page_dirty_scope to indicate if all of the vfio_groups for each vfio_domain in the domain_list dirty page scope is limited to pinned pages. This flag is updated on first pinned pages request for that IOMMU group and on attaching/detaching group.

Kirti Wankhede committed 6 years ago

Commit 95fc87b1 parent ad721703 files · +109 −11Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/vfio.h+3−1
@@ -76,7 +76,9 @@ struct vfio_iommu_driver_ops { · 75 unmodified lines
7676 struct iommu_group *group);
7777 void (*detach_group)(void *iommu_data,
7878 struct iommu_group *group);
79− int (*pin_pages)(void *iommu_data, unsigned long *user_pfn,
79+ int (*pin_pages)(void *iommu_data,
80+ struct iommu_group *group,
81+ unsigned long *user_pfn,
8082 int npage, int prot,
8183 unsigned long *phys_pfn);
8284 int (*unpin_pages)(void *iommu_data,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t