opnsense-src/sys/dev/virtio
Eugene Grosbein fa67c45842 virtio_random(8): MFC: avoid deadlock at shutdown time (regression fix)
FreeBSD 13+ running as virtual guest may load virtio_random(8) driver
by means of devd(8) unless the driver is blacklisted or disabled
via device.hints(5). Currently, the driver may prevent
the system from rebooting or shutting down correctly.

This change deactivates virtio_random at very late stage
during system shutdown sequence to avoid deadlock
that results in kernel hang.

PR:		253175
Tested by:	tom
Relnotes:	yes
Approved by:	re (gjb)

(cherry picked from commit adbf7727b3)
(cherry picked from commit 4a11315a2c)
2022-03-19 19:36:26 +07:00
..
balloon Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-11-03 13:39:36 -04:00
block virtio_blk: Fix issuing T_GET_ID before DRIVER_OK status 2021-06-28 23:16:39 +08:00
console virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
mmio virtio_mmio: Delete a stale #if 0'ed debug print 2021-01-21 02:14:41 +00:00
network if_vtnet(4): Restore the ability to set promisc mode. 2022-02-23 14:08:24 +03:00
pci Only use byte register access in legacy virtio pci 2021-09-27 09:36:38 +01:00
random virtio_random(8): MFC: avoid deadlock at shutdown time (regression fix) 2022-03-19 19:36:26 +07:00
scsi virtio: Reduce boilerplate for device driver module definitions 2021-01-21 01:07:23 +00:00
virtio.c virtio_pci: Add sysctl to show current features 2021-01-19 04:55:23 +00:00
virtio.h bhyve: virtio shares definitions between sys/dev/virtio 2021-08-12 14:44:52 +08:00
virtio_bus_if.m virtio: Add VirtIO PCI modern (V1) support 2021-01-19 04:55:23 +00:00
virtio_config.h
virtio_endian.h bhyve: virtio shares definitions between sys/dev/virtio 2021-08-12 14:44:52 +08:00
virtio_ids.h
virtio_if.m
virtio_ring.h
virtqueue.c virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00
virtqueue.h virtio: Add modern (v1) virtqueue support 2021-01-19 04:55:23 +00:00