CFT: Hyper-V patch series

From: Chuck Tuffli <chuck_at_freebsd.org>
Date: Tue, 24 Nov 2026 20:31:10 UTC
I've been working on a series of FreeBSD kernel fixes when running under
Hyper-V. My narrow testing has gone well, and I think these are ready for a
wider audience. These are available as a stacked review on Phabricator:

https://reviews.freebsd.org/D62006 virtio_console: Send events after device
is ready
https://reviews.freebsd.org/D62007 hyperv: Use SAFE variant when deleting
elements
https://reviews.freebsd.org/D62008 hyperv: Fix possible NULL dereference
https://reviews.freebsd.org/D62009 hyperv: Pre-populate BAR values for PCI
devices
https://reviews.freebsd.org/D62010 hyperv: refactor hvsock check for buffer
data
https://reviews.freebsd.org/D62011 hyperv: Add poll support to hvsock driver
https://reviews.freebsd.org/D62012 hyperv: Add kqueue support to hvsock
driver

or you can pull from my up-to-date-ish GitHub branch (
https://github.com/ctuffli/freebsd-src/tree/wsl). Both testing feedback as
well as reviews are welcome. The first 3 should be minor fixes, but the
rest could use more eyes.

D62009 implements a workaround found in the Linux kernel. By pre-populating
the device's PCI BARs, several devices (serial port and network) now work.
Note that our driver has a function with a similar name that does something
very different. I'm torn as to whether to leave both, combine them somehow,
or replace the existing with the new code.

The bigger changes are the addition of poll (D62011) and kqueue (D62012)
support for the hvsock driver. This is my first foray into any of this, so
those could do with a closer inspection.

Thanks in advance.

--chuck