aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/test/bang2.err
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-11-04 21:31:31 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-11-04 21:34:17 +0000
commitc67e695b8f7eff84f7daa9e30eba7eb5ec552436 (patch)
tree1538bd8fa0f36bd58989715112e60f5f5213d873 /bin/ed/test/bang2.err
parentcce522853aae3da45b131c2522dd2510edf083e7 (diff)
virtio_pci_modern: enable virtqueues before completing attachHEADmain
Most of our drivers setup interrupt(s) and virtqueues are enabled at that time, but nothing will currently enable them for devices that we're only going to poll. This most notably affects virtio-random, and the problem can be observed with qemu's q35 emulation and a random device attached. The q35 implementation ignores the ring unless it's enabled, so vtrnd_harvest() will consistently EAGAIN rather than contribute anything of value, but with this patch it becomes functional. This can be reproduced with a qemu invocation like so: qemu-system-x86_64 -machine q35,accel=tcg -cpu max -smp 2 -m 2G \ -drive file=FreeBSD-16.0-CURRENT-amd64-ufs.qcow2,if=virtio \ -device pcie-root-port,id=rp1,bus=pcie.0,chassis=1 \ -object rng-random,id=rng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=rng0,bus=rp1 \ -display curses Reviewed by: bnovkov, kfv Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D61052
Diffstat (limited to 'bin/ed/test/bang2.err')
0 files changed, 0 insertions, 0 deletions