summaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-04-03 15:59:09 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-04-03 15:59:09 +0000
commitf16767e59e81e94caa4b013214ee95505a93d921 (patch)
tree1be3b3a744171e63c796f17931eeb1aa66aac28f /usr.bin/m4
parentf8e71ba7238c534909522200398a0819b7841f73 (diff)
Add a guard page between I/O virtual address space allocations. The idea
is that IOVA allocations always have a gap in-between which produces a fault on access. If a transfer to a given allocation runs further than expected we should be able to see it. We pre-allocate IOVA on bus DMA map creation, and as long as we don't allocate a PTE descriptor, this comes with no cost. We have plenty of address space anyway, so adding a page-sized gap does not hurt at all and can only have positive effects. Idea from kettenis@
Diffstat (limited to 'usr.bin/m4')
0 files changed, 0 insertions, 0 deletions