Sync full virtqueue on device reset
authorsf <sf@openbsd.org>
Tue, 13 Aug 2024 08:47:28 +0000 (08:47 +0000)
committersf <sf@openbsd.org>
Tue, 13 Aug 2024 08:47:28 +0000 (08:47 +0000)
commit657921cb7a3fc7a744a44e9ca1ecc60c76c24669
tree208a7a8493a4e02d48bb08ba9035c42e69302c36
parent7606e65bc74aede9fa2bfee6084cbb5d336dedb7
Sync full virtqueue on device reset

We initialize the whole virtqueue and must make sure that the device
sees this even for the areas that are normally only written by the
device. Otherwise there may be an assertion fail during ifconfig up, as
found by bluhm@ with hshoexer@'s bounce buffer diff.

OK bluhm@
sys/dev/pv/virtio.c