Commit 0c7f249
iommu/vt-d: Wrap the dirty tracking loop to be a helper
Add device_set_dirty_tracking() to loop all the devices and set the dirty
tracking per the @enable parameter.
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20240208082307.15759-8-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 56ecaf6 commit 0c7f249
1 file changed
Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4729 | 4729 | | |
4730 | 4730 | | |
4731 | 4731 | | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
4732 | 4751 | | |
4733 | 4752 | | |
4734 | 4753 | | |
4735 | 4754 | | |
4736 | | - | |
4737 | 4755 | | |
4738 | 4756 | | |
4739 | 4757 | | |
4740 | 4758 | | |
4741 | 4759 | | |
4742 | 4760 | | |
4743 | | - | |
4744 | | - | |
4745 | | - | |
4746 | | - | |
4747 | | - | |
4748 | | - | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
4749 | 4764 | | |
4750 | 4765 | | |
4751 | 4766 | | |
| |||
4754 | 4769 | | |
4755 | 4770 | | |
4756 | 4771 | | |
4757 | | - | |
4758 | | - | |
4759 | | - | |
4760 | | - | |
| 4772 | + | |
| 4773 | + | |
4761 | 4774 | | |
4762 | 4775 | | |
4763 | 4776 | | |
| |||
0 commit comments