vtblk: Fix dumping
authorColin Percival <cperciva@FreeBSD.org>
Thu, 3 Nov 2022 01:55:12 +0000 (18:55 -0700)
committerColin Percival <cperciva@FreeBSD.org>
Thu, 3 Nov 2022 07:52:43 +0000 (00:52 -0700)
commit75549de770df470b024c92ff093009c6987b40fd
tree151d2b826b01ef84b1919b3402954f71fa0112a8
parenta6346c02f646c6b74f007c64a9b546deb06182ae
vtblk: Fix dumping

Now that vtblk uses busdma, it keeps important information inside its
request structures.  The functions used for kernel dumps synthesize
their own request structures rather than using structures initialized
with the necessary bits for busdma.

Add busdma-bypass paths.  Since dumping writes contiguous blocks of
physical memory, vtblk doesn't need busdma in that case.

Reported by: glebius
Tested by: glebius
Differential Revision: https://reviews.freebsd.org/D37243
sys/dev/virtio/block/virtio_blk.c