Re: [PATCH v3 07/19] iommufd: Dirty tracking data support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 17, 2023 at 05:51:49PM +0100, Joao Martins wrote:
 
> Perhaps that could be rewritten as e.g.
> 
> 	ret = -EINVAL;
> 	iopt_for_each_contig_area(&iter, area, iopt, iova, last_iova) {
> 		// do iommu_read_and_clear_dirty();
> 	}
> 
> 	// else fail.
> 
> Though OTOH, the places you wrote as to fail are skipped instead.

Yeah, if consolidating the areas isn't important (it probably isn't)
then this is the better API

It does check all the same things: iopt_area_contig_done() will fail

Jason



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux