Re: [PATCH v2] xen/swiotlb: Bounce mappings that cross the segment boundary
From: Jürgen Groß
Date: Thu Nov 19 2026 - 01:45:09 EST
On 19.11.26 07:38, Lin Liu wrote:
The block layer applies a device's DMA segment boundary toReviewed-by: Juergen Gross <jgross@xxxxxxxx>
pseudo-physical addresses, but in a Xen PV domain the bus address is the
machine address. A segment that is contiguous in both spaces can still
cross the boundary in machine space and reach the device. AHCI declares
a 4 GiB boundary, and controllers that do not carry across it (e.g.
Marvell 88SE9230) then DMA the tail of the transfer 4 GiB too low.
Bounce such streaming mappings. Coherent allocations need no check:
they are naturally aligned in bus space (range_requires_alignment()), so
they cannot cross a boundary they fit in.
Signed-off-by: Lin Liu <lin.liu01@xxxxxxxxxx>
Juergen
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature