CVSROOT: /cvs Module name: src Changes by: s...@cvs.openbsd.org 2023/05/29 02:13:35
Modified files: sys/dev/fdt : virtio_mmio.c sys/dev/pci : virtio_pci.c sys/dev/pv : if_vio.c vioblk.c viocon.c viogpu.c viomb.c viornd.c vioscsi.c vmmci.c Log message: virtio: Set DRIVER_OK earlier The DRIVER_OK bit must be set before using any virt-queues. To allow virtio device drivers to use the virt-queues in their attach functions, set the bit there and not in the virtio transport attach function. Only vioscsi and viogpu really need this, but let's only have one standard way to do this. Noticed because of hangs with vioscsi on qemu/windows and in the Oracle cloud. With much debugging help by Aaron Mason. Also revert vioscsi.c 1.31 "Temporarily workaround double calls into vioscsi_req_done()" ok krw@