Not directly related to this patch alone, but to the combined set of changes
to swiotlb: I don't see any handling of CONFIG_HIGHMEM here (or at least
a note that this a known limitation needing work). I mention this because
this was the largest part of the changes I had posted long ago to make
lib/swiotlb.c Xen-ready, and which got rejected due to their ugliness.
While perhaps less intrusive to take care of, I also didn't see an equivalentCould you be more specific? The swiotlb allocation should be machine contiguous and so there's no stradding required, but I think I'm missing your point.
of the range_straddles_page_boundary() logic, without which I can't see
how this would work in the common case.